Class InMemoryGraphDatabaseSystem
An in-memory implementation of IGraphDatabaseSystem.
Implements
IEntity
Inherited Members
Namespace: Ride.GraphDatabase
Assembly: cs.temp.dll.dll
Syntax
public class InMemoryGraphDatabaseSystem : RideSystemMonoBehaviour, IGraphDatabaseSystem, IGraphDatabaseOperationSystem, IGraphDatabasePersistenceSystem, IRideSystem, IApiInject, IIdentity
Fields
Name | Description |
---|---|
m_incomingRelationships | |
m_nodes | |
m_outgoingRelationships | |
m_relationships |
Properties
Name | Description |
---|---|
nodeCount | |
nodes | All nodes saved in this system. |
relationships | All relationships saved in this system. |
Methods
Name | Description |
---|---|
NodeExists(RideID) | Test existance of node with given ID. |
RelationshipExists(RideID) | |
TryAddNode(INode) | |
TryAddRelationship(IRelationship) | |
TryGetIncomningRelationships(RideID, out IEnumerable<IRelationship>) | Get all in-coming relationships of the node with given ID. |
TryGetNode(RideID, out INode) | Get the node with given ID. |
TryGetOutgoingRelationships(RideID, out IEnumerable<IRelationship>) | Get all out-going relationships of the node with given ID. |
TryGetRelationship(RideID, out IRelationship) | Get the relationship with given ID. |
TryRemoveNode(RideID) | Remove the node with given ID. |
TryRemoveRelationship(RideID) | Remove the relationship with given ID. |
TryUpdateNode(INode) | |
TryUpdateRelationship(IRelationship) |