Esempio n. 1
0
  public Collection<GraphObject> GetAllObjects() {
    List<GraphObject> result = new LinkedList<>();

    for (GraphObject object : ObjectsFromUid(graph, graph.GetAllObjects())) result.add(object);

    return result;
  }
Esempio n. 2
0
 public GraphObject GetLinkTarget(GraphLink link) {
   return new GraphObject(graph, graph.GetLinkTarget(link.GetID()));
 }
Esempio n. 3
0
 public Collection<GraphObject> QueryObjects(String name, String value) {
   return ObjectsFromUid(graph, graph.GetIndex().QueryObjects(name, value));
 }
Esempio n. 4
0
 public Collection<GraphLink> QueryLinks(String name, String value) {
   return LinksFromUid(graph, graph.GetIndex().QueryLinks(name, value));
 }
Esempio n. 5
0
 public Collection<GraphObject> GetObjects(String name, Object value) {
   return ObjectsFromUid(graph, graph.GetIndex().GetObjects(name, value));
 }
Esempio n. 6
0
 public GraphObject GetObject(String name, Object value) {
   Info<EGraphType> info = graph.GetIndex().GetObject(name, value);
   return new GraphObject(graph, info);
 }
Esempio n. 7
0
 public Collection<GraphLink> GetLinks(String name, Object value) {
   return LinksFromUid(graph, graph.GetIndex().GetLinks(name, value));
 }
Esempio n. 8
0
 public GraphLink GetLink(String name, Object value) {
   Info<EGraphType> info = graph.GetIndex().GetLink(name, value);
   return new GraphLink(graph, info);
 }
Esempio n. 9
0
 public Collection<GraphLink> GetAllLinks() {
   return LinksFromUid(graph, graph.GetAllLinks());
 }
Esempio n. 10
0
 public void EnableObjectIndex(String name) {
   graph.GetIndex().EnableObjectIndex(name);
 }
Esempio n. 11
0
 public void EnableLinkIndex(String name) {
   graph.GetIndex().EnableLinkIndex(name);
 }
Esempio n. 12
0
 public GraphObject AddObject() {
   return new GraphObject(graph, graph.AddObject());
 }
Esempio n. 13
0
 // --------
 //       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));
 }
Esempio n. 14
0
 public GraphObject GetLinkSource(GraphLink link) {
   return new GraphObject(graph, graph.GetLinkSource(link.GetID()));
 }