示例#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()));
 }