public Collection<GraphObject> GetAllObjects() { List<GraphObject> result = new LinkedList<>(); for (GraphObject object : ObjectsFromUid(graph, graph.GetAllObjects())) result.add(object); return result; }
public GraphObject GetLinkTarget(GraphLink link) { return new GraphObject(graph, graph.GetLinkTarget(link.GetID())); }
public Collection<GraphObject> QueryObjects(String name, String value) { return ObjectsFromUid(graph, graph.GetIndex().QueryObjects(name, value)); }
public Collection<GraphLink> QueryLinks(String name, String value) { return LinksFromUid(graph, graph.GetIndex().QueryLinks(name, value)); }
public Collection<GraphObject> GetObjects(String name, Object value) { return ObjectsFromUid(graph, graph.GetIndex().GetObjects(name, value)); }
public GraphObject GetObject(String name, Object value) { Info<EGraphType> info = graph.GetIndex().GetObject(name, value); return new GraphObject(graph, info); }
public Collection<GraphLink> GetLinks(String name, Object value) { return LinksFromUid(graph, graph.GetIndex().GetLinks(name, value)); }
public GraphLink GetLink(String name, Object value) { Info<EGraphType> info = graph.GetIndex().GetLink(name, value); return new GraphLink(graph, info); }
public Collection<GraphLink> GetAllLinks() { return LinksFromUid(graph, graph.GetAllLinks()); }
public void EnableObjectIndex(String name) { graph.GetIndex().EnableObjectIndex(name); }
public void EnableLinkIndex(String name) { graph.GetIndex().EnableLinkIndex(name); }
public GraphObject AddObject() { return new GraphObject(graph, graph.AddObject()); }
// -------- // LINKS AND OBJECTS // -------- public GraphLink AddLink(GraphObject source, GraphObject target, String link_type) { return new GraphLink(graph, graph.AddLink(source.GetID(), target.GetID(), link_type)); }
public GraphObject GetLinkSource(GraphLink link) { return new GraphObject(graph, graph.GetLinkSource(link.GetID())); }