コード例 #1
0
  public Collection<GraphObject> GetAllObjects() {
    List<GraphObject> result = new LinkedList<>();

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

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