public class Graph<ET extends EntityType,RT extends RelationType> extends Object
Constructor and Description |
---|
Graph() |
Modifier and Type | Method and Description |
---|---|
Entity<ET,RT> |
createEntity(int id,
ET type) |
boolean |
deleteEntity(Entity<ET,RT> e) |
Iterator<Entity<ET,RT>> |
getEntities(ET type) |
Entity<ET,RT> |
getEntity(int id,
ET type) |
int |
getNoEntities(ET type) |
Entity<ET,RT> |
getorCreateEntity(int id,
ET type) |
void |
loadEntityAttributes(String file,
ET type,
String[] attNames,
boolean createEntity) |
void |
loadEntityAttributes(String file,
ET type,
String[] attNames,
DelimitedObjectConstructor.Filter filter,
boolean createEntity) |
void |
loadRelationship(String file,
RT relType,
ET[] types,
boolean[] createEntity) |
void |
loadRelationship(String file,
String[] attNames,
RT relType,
ET[] types,
boolean[] createEntity) |
void |
loadRelationship(String file,
String[] attNames,
RT relType,
ET[] types,
DelimitedObjectConstructor.Filter filter,
boolean[] createEntity) |
List<Subgraph<ET,RT>> |
splitGraphRandom(int numsplits,
ET splitType) |
List<Subgraph<ET,RT>> |
splitGraphSnowball(int numsplits,
ET splitType,
int splitSize,
double exploreProbability) |
public int getNoEntities(ET type)
public void loadEntityAttributes(String file, ET type, String[] attNames, boolean createEntity)
public void loadEntityAttributes(String file, ET type, String[] attNames, DelimitedObjectConstructor.Filter filter, boolean createEntity)
public void loadRelationship(String file, RT relType, ET[] types, boolean[] createEntity)
public void loadRelationship(String file, String[] attNames, RT relType, ET[] types, boolean[] createEntity)
public void loadRelationship(String file, String[] attNames, RT relType, ET[] types, DelimitedObjectConstructor.Filter filter, boolean[] createEntity)
Copyright © 2018 University of California, Santa Cruz. All rights reserved.