pub struct GraphView {
pub result: GraphResult,
pub skipped: usize,
pub positions: Option<Positions>,
pub groups: Option<Grouping>,
}Expand description
A graph to draw, and what was left out of it.
Fields§
§result: GraphResultThe nodes, the edges, and the columns the rule and SIZE BY and
COLOR BY made, which its encodings name. A property graph’s nodes
and a plain table’s have the one label "", and their edges’ rows
are not known; a rule that reads metadata names the vertex and edge
tables, and gives the rows it knows.
skipped: usizeRows left out because an endpoint is NULL.
positions: Option<Positions>Where POSITIONS (query) puts each node (#502), one place per node
of result: a front end draws them there and runs no layout. They
are beside the result, not in it, because an explore session’s deltas
are of a result without positions: a view keeps where its nodes are,
and moves them as the drawing grows. GraphView::placed is the
result with them, for a front end that only shows it.
groups: Option<Grouping>With GROUP BY (#499): which of the drawing’s nodes each group of
result has. They are not in the result until a group is opened,
which an explore session does with this (Session::grouped).
Implementations§
Source§impl GraphView
impl GraphView
Sourcepub fn placed(&self) -> GraphResult
pub fn placed(&self) -> GraphResult
The result with POSITIONS’s positions in it (UGR’s nodes.x and
nodes.y): a drawing that opens drawn. The result as it is when
there are none.
Sourcepub fn grouped_by(&self) -> Option<String>
pub fn grouped_by(&self) -> Option<String>
The legend of GROUP BY, if it was asked: grouped by louvain: 12 groups.
Trait Implementations§
impl StructuralPartialEq for GraphView
Auto Trait Implementations§
impl Forget for GraphView
impl Freeze for GraphView
impl Move for GraphView
impl RefUnwindSafe for GraphView
impl Send for GraphView
impl Sync for GraphView
impl Unpin for GraphView
impl UnsafeUnpin for GraphView
impl UnwindSafe for GraphView
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more