generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ♻️ All analysis types into constants, not their own files
- Loading branch information
1 parent
2e88f2c
commit 77d6dc6
Showing
13 changed files
with
129 additions
and
233 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
import type { Analyses, GraphAnalysisSettings } from "src/Interfaces"; | ||
import type { Analyses, GraphAnalysisSettings } from 'src/Interfaces' | ||
|
||
export const DEFAULT_SETTINGS: GraphAnalysisSettings = { | ||
noInfinity: true, | ||
noZero: true, | ||
defaultAnalysisType: 'Co-Citations', | ||
debugMode: false, | ||
superDebugMode: false, | ||
noInfinity: true, | ||
noZero: true, | ||
defaultAnalysisType: 'Co-Citations', | ||
debugMode: false, | ||
superDebugMode: false, | ||
} | ||
|
||
export const DECIMALS = 4; | ||
export const DECIMALS = 4 | ||
|
||
export const VIEW_TYPE_GRAPH_ANALYSIS = 'graph-analysis'; | ||
export const VIEW_TYPE_GRAPH_ANALYSIS = 'graph-analysis' | ||
|
||
export const ANALYSIS_TYPES: Analyses[] = [ | ||
// 'Centrality', | ||
'Link Prediction', | ||
'Similarity', | ||
'Co-Citations' | ||
// 'Centrality', | ||
'Link Prediction', | ||
'Similarity', | ||
'Co-Citations', | ||
] | ||
|
||
export const LINKED = 'analysis-linked'; | ||
export const NOT_LINKED = 'analysis-not-linked'; | ||
export const LINKED = 'analysis-linked' | ||
export const NOT_LINKED = 'analysis-not-linked' | ||
|
||
export const TD_MEASURE = 'analysis-measure'; | ||
export const TD_NODE = 'analysis-node'; | ||
export const TD_MEASURE = 'analysis-measure' | ||
export const TD_NODE = 'analysis-node' | ||
|
||
export const CENTRALITY_TYPES: { | ||
subtype: string | ||
}[] = [{ subtype: 'Closeness' }] | ||
|
||
export const LINK_PREDICTION_TYPES: { | ||
subtype: string | ||
}[] = [{ subtype: 'Adamic Adar' }, { subtype: 'Common Neighbours' }] | ||
|
||
export const SIMILARITY_TYPES: { | ||
subtype: string | ||
}[] = [{ subtype: 'Jaccard' }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.