Difference between revisions of "SimpleGraph"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
is an open source project that allows to wrap Systems APIs in a way that graph algorithms and storage can be applied. As an implementation Apache Gremlin/Tinkerpop is used. | is an open source project that allows to wrap Systems APIs in a way that graph algorithms and storage can be applied. As an implementation Apache Gremlin/Tinkerpop is used. | ||
= FileSystem example = | = FileSystem example = | ||
− | The graph below shows the source code | + | The graph below shows the source code structure for the SimpleGraph project. |
+ | This graph visualization has been produced with the following Java lines which make sure that the | ||
+ | "src" Directory can be handled as a gremlin graph: | ||
+ | <source lang='java'> | ||
+ | SimpleSystem fs=new FileSystem(); | ||
+ | SimpleNode start = fs.connect("").moveTo("src"); | ||
+ | start.recursiveOut("files",Integer.MAX_VALUE); | ||
+ | </source> | ||
<graphviz> | <graphviz> | ||
digraph FileSystemGraph { | digraph FileSystemGraph { |
Revision as of 16:06, 13 January 2018
SimpleGraph
SimpleGraph is an open source project that allows to wrap Systems APIs in a way that graph algorithms and storage can be applied. As an implementation Apache Gremlin/Tinkerpop is used.
FileSystem example
The graph below shows the source code structure for the SimpleGraph project. This graph visualization has been produced with the following Java lines which make sure that the "src" Directory can be handled as a gremlin graph:
SimpleSystem fs=new FileSystem();
SimpleNode start = fs.connect("").moveTo("src");
start.recursiveOut("files",Integer.MAX_VALUE);