Hi folks - I’ve seen a couple of threads requesting or asking for some ways of getting the graph out of obsidian into something else for visualization or analysis. I’d like to do this too; it seems to me that network metrics like centrality or modularity (community detection) would be useful to know - how do my notes/ideas cluster? which ideas hold everything together?
I managed a bit of a kludgy way to do this this morning; I imagine someone could probably turn this into a single python script (alternatively, maybe there’s a way to calculate centrality/modularity as a plugin for obsidian). Anyway, here goes -
1 - find the json file in obsidian/ObsidianCache that represents the vault I’m interested in
2 - use jq to get the note title and the note links; something like .metadata[] | [.frontmatter.title, .links] gets me most of the way there
3 - convert the result to csv
4 - manually clean things up so I have two columns, source and target; save as csv
5 - import into gephi
Anyway, ta da - my little vault in obsidian, and now in gephi: