X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graphviz%2Fscl%2FVisualization%2FModuleDependencyGraph.scl;fp=bundles%2Forg.simantics.graphviz%2Fscl%2FVisualization%2FModuleDependencyGraph.scl;h=1139b84e1b81952c725001c75a8637d693467b8b;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=ff73c5ae232d8f8055db1fc29c3c887428fc70d2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graphviz/scl/Visualization/ModuleDependencyGraph.scl b/bundles/org.simantics.graphviz/scl/Visualization/ModuleDependencyGraph.scl index ff73c5ae2..1139b84e1 100644 --- a/bundles/org.simantics.graphviz/scl/Visualization/ModuleDependencyGraph.scl +++ b/bundles/org.simantics.graphviz/scl/Visualization/ModuleDependencyGraph.scl @@ -1,12 +1,12 @@ -import "Reflection" (moduleDependencyGraph) -import "Visualization/GGraph" - -showModuleDependencyGraph :: () -showModuleDependencyGraph = do - graph = newGGraph [Rankdir "LR"] $ \r -> [Label r, Shape "rect"] - for moduleDependencyGraph $ \(moduleName, deps) -> - for (filter interestingDependency deps) $ \(depModuleName, localName, importSpec) -> - newGEdge graph moduleName depModuleName [] - showGGraph graph - where +import "Reflection" (moduleDependencyGraph) +import "Visualization/GGraph" + +showModuleDependencyGraph :: () +showModuleDependencyGraph = do + graph = newGGraph [Rankdir "LR"] $ \r -> [Label r, Shape "rect"] + for moduleDependencyGraph $ \(moduleName, deps) -> + for (filter interestingDependency deps) $ \(depModuleName, localName, importSpec) -> + newGEdge graph moduleName depModuleName [] + showGGraph graph + where interestingDependency (moduleName, localName, importSpec) = not (startsWith moduleName "http:") && localName != Nothing \ No newline at end of file