예제 #1
0
  @Override
  public InstancePropertyMap getPropertiesForEdge(long edgeId) {
    if (!_edgeInstances.containsKey(edgeId)) {
      _edgeInstances.put(edgeId, new InstancePropertyMap(edgeId, getEdgeProperties()));
    }

    return _edgeInstances.get(edgeId);
  }
예제 #2
0
  @Override
  public InstancePropertyMap getPropertiesForVertex(long vertexId) {
    assert (_template.containsVertex(vertexId));

    if (!_vertexInstances.containsKey(vertexId)) {
      _vertexInstances.put(vertexId, new InstancePropertyMap(vertexId, getVertexProperties()));
    }

    return _vertexInstances.get(vertexId);
  }