Skip to content

Latest commit

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

IfcGraph

Use Networkx to manipulate an IFC file as a directed graph.

#graph.pyimportifcopenshellimportifcgraphimportnetworkxasnximportsysfn=sys.argv[1]
ifc_file=ifcopenshell.open(fn)
G=ifcgraph.create_graph(ifc_file) sorted=list(reversed(list(nx.topological_sort(G))))
SG=ifcgraph.get_subgraph(23946, G)
ifcgraph.draw_graph(SG)

python graph.py input.ifc

Output:

image

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages