ChrisDelClea / streamlit-agraph

A Streamlit Graph Vis
MIT License
390 stars 53 forks source link

Hierarchical Config questions #45

Open zednis opened 1 year ago

zednis commented 1 year ago

I am interested in being able to format a hierarchical graph in ways similar to what is available at https://marvelous-graph.streamlit.app/. Does anyone know if there is documentation or sample code available to show to how use the hierarchical config options shown in the demo such as blockShifting, edgeMinimization, parentCentralization, sortMethod, shakeTowards, etc successfully? I've tried to include them as keys in the Config (kwargs) but they didn't seem to do anything.

aza1200 commented 1 year ago

I think it's relevent to the physics setting in config... but it doesn't work too,

But if i just follow the https://marvelous-graph.streamlit.app/ like that by using the

from streamlit_agraph import data and data.load_data()

It works...

I don't know how to use hierarchical structure like that ..

amaralcs commented 3 months ago

If anyone comes across this issue in the future, I figured out that having both physics = True and hierarchical = True in the definition of Config causes the hierarchical option to be ignored. Try setting physics = False.