Class Graph
java.lang.Object
io.openml.kugelblitz.neo4j.Graph
A JSON-serializable object representation of a knowledge graph in Kugelblitz.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphCreates a newGraphinstance with no initial nodes or links in it.getLinks()Returns an unmodifiable view of all the links in this Graph instance.getNodes()Returns an unmodifiable view of all the nodes in this Graph instance.getUndirectedNeighborsOf(Node node) Returns all weakly connected neighbors of a specified node.booleanisEmpty()Returns whether or not thisGraphhas neither nodes noe links.@NotNull StringtoString()Returns a JSON serialization of this Graph instance.
-
Constructor Details
-
Graph
-
-
Method Details
-
emptyGraph
-
isEmpty
-
getUndirectedNeighborsOf
Returns all weakly connected neighbors of a specified node.If the node has no such neighrbors, this method returns an empty list
- Parameters:
node- a node from thisGraph- Returns:
- all nodes each of which has a link between it and the provided node.
-
merge
-
getNodes
-
getLinks
-
toString
-