logo
pub trait VertexCentroid: GraphData where
    Self::Vertex: AsPosition
{ fn centroid<B>(
        vertex: VertexView<B>
    ) -> Result<VertexPosition<Self>, GraphError>
    where
        B: Reborrow,
        B::Target: AsStorage<Arc<Self>> + AsStorage<Vertex<Self>> + Consistent + Parametric<Data = Self>
; }

Required Methods

Implementors