public class SceneGraph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
SemanticGraph |
sg |
Constructor and Description |
---|
SceneGraph() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(SceneGraphNode source,
SceneGraphNode target,
java.lang.String relation) |
void |
addNode(IndexedWord value) |
void |
addNode(SceneGraphNode node) |
SceneGraphNode |
getOrAddNode(IndexedWord value) |
static void |
main(java.lang.String[] args) |
java.util.List<SceneGraphNode> |
nodeListSorted() |
java.util.List<SceneGraphRelation> |
relationListSorted() |
java.lang.String |
toJSON(int imageID,
java.lang.String url,
java.lang.String phrase) |
java.lang.String |
toReadableString() |
public SemanticGraph sg
public void addEdge(SceneGraphNode source, SceneGraphNode target, java.lang.String relation)
public java.util.List<SceneGraphRelation> relationListSorted()
public java.util.List<SceneGraphNode> nodeListSorted()
public java.lang.String toReadableString()
public static void main(java.lang.String[] args)
public void addNode(IndexedWord value)
public void addNode(SceneGraphNode node)
public SceneGraphNode getOrAddNode(IndexedWord value)
public java.lang.String toJSON(int imageID, java.lang.String url, java.lang.String phrase)