pub enum GraphCommand {
Neighborhood {
source: String,
depth: u32,
direction: String,
edge_labels: Option<Vec<String>>,
},
ShortestPath {
source: String,
target: String,
algorithm: String,
direction: String,
limit: Option<u32>,
order_by: Option<GraphCommandOrderBy>,
},
Traverse {
source: String,
strategy: String,
depth: u32,
direction: String,
edge_labels: Option<Vec<String>>,
},
Centrality {
algorithm: String,
limit: Option<u32>,
order_by: Option<GraphCommandOrderBy>,
},
Community {
algorithm: String,
max_iterations: u32,
limit: Option<u32>,
order_by: Option<GraphCommandOrderBy>,
},
Components {
mode: String,
limit: Option<u32>,
order_by: Option<GraphCommandOrderBy>,
},
Cycles {
max_length: u32,
},
Clustering,
TopologicalSort,
Properties {
source: Option<String>,
},
}Variants§
Neighborhood
GRAPH NEIGHBORHOOD ‘source’ [DEPTH n] [DIRECTION dir] [EDGES IN (‘label’, …)]
ShortestPath
GRAPH SHORTEST_PATH ‘source’ TO ‘target’ [ALGORITHM alg] [DIRECTION dir] [ORDER BY metric [ASC|DESC]] [LIMIT n]
Fields
order_by: Option<GraphCommandOrderBy>Traverse
GRAPH TRAVERSE ‘source’ [STRATEGY bfs|dfs] [DEPTH n] [DIRECTION dir] [EDGES IN (‘label’, …)]
Fields
Centrality
GRAPH CENTRALITY [ALGORITHM alg] [ORDER BY metric [ASC|DESC]] [LIMIT n]
limit = None keeps the historical implicit top-100 cap. Some(n)
caps the returned rows at n.
Community
GRAPH COMMUNITY [ALGORITHM alg] [MAX_ITERATIONS n] [ORDER BY metric [ASC|DESC]] [LIMIT n]
Fields
order_by: Option<GraphCommandOrderBy>Components
GRAPH COMPONENTS [MODE connected|weak|strong] [ORDER BY metric [ASC|DESC]] [LIMIT n]
Cycles
GRAPH CYCLES [MAX_LENGTH n]
Clustering
GRAPH CLUSTERING
TopologicalSort
GRAPH TOPOLOGICAL_SORT
Properties
GRAPH PROPERTIES [‘
source = None returns graph-wide stats. source = Some("...") returns
the full property bag of a specific node, resolved via the same label
index as GRAPH NEIGHBORHOOD / GRAPH TRAVERSE (issue #416).
Trait Implementations§
Source§impl Clone for GraphCommand
impl Clone for GraphCommand
Source§fn clone(&self) -> GraphCommand
fn clone(&self) -> GraphCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for GraphCommand
impl RefUnwindSafe for GraphCommand
impl Send for GraphCommand
impl Sync for GraphCommand
impl Unpin for GraphCommand
impl UnsafeUnpin for GraphCommand
impl UnwindSafe for GraphCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request