daxcore / mkdocs-obsidian-interactive-graph-plugin

interactive graph for Material for MkDocs like Obsidian, refer demo:
https://daxcore.github.io/mkdocs-obsidian-interactive-graph-plugin/
MIT License
12 stars 1 forks source link

Graph layout options other then Force #2

Open buildvoc10 opened 3 weeks ago

buildvoc10 commented 3 weeks ago

Thank you for sharing this plugin for MKDoc,s have it deployed at http://preview.pic2bim.co.uk/ for testing. Was wondering if you had tested any other graph layouts other than force?

daxcore commented 3 weeks ago

Welcome. Which graph layout do u miss? The forced one was the only layout that matched my idea of the graph.

buildvoc10 commented 2 weeks ago

Maybe breadthfirst which hierarchical graph layout?

daxcore commented 2 weeks ago

not sure which layout u mean. maybe u can send a link to an echarts demo. in general the python plugin generates a json file with a special format matching the forced layout, like this:

{
  "nodes": [
    {
      "id": "0",
      "name": "Welcome",
      ...
    },
    {
      "id": "1",
      "name": "Concept",
      ...
    },
    ...
  ],
  "links": [
    {
      "source": "0",
      "target": "1"
    },
    ...

i guess this format is special for the forced layout.

buildvoc10 commented 1 week ago

dagre https://github.com/ecomfe/echarts-dagre is a good graph layout for showing information flow