pub trait GraphDCEL<V: Vertex, D: Dart, F: Face, VI: Iterator<Item = V>, DI: Iterator<Item = D>, FI: Iterator<Item = F>> {
Show 23 methods fn get_vertexes(&self) -> VI; fn get_darts(&self) -> DI; fn get_faces(&self) -> FI; fn vertex_count(&self) -> usize; fn dart_count(&self) -> usize; fn edge_count(&self) -> usize; fn face_count(&self) -> usize; fn face_vertex_count(&self, face: &F) -> usize; fn neighbors_count(&self, vertex: &V) -> usize; fn neighbors(&self, vertex: &V) -> Vec<V>; fn vertex_by_id(&self, id: usize) -> Option<V>; fn get_dart(&self, vertex: &V, target: &V) -> Option<D>; fn dart_vertex(&self, vertex: &V) -> D; fn dart_face(&self, face: &F) -> D; fn twin(&self, dart: &D) -> D; fn dart_target(&self, dart: &D) -> V; fn face(&self, dart: &D) -> F; fn next(&self, current: &D) -> D; fn prev(&self, current: &D) -> D; fn add_vertex(&mut self) -> V; fn add_dart(
        &mut self,
        from: V,
        to: V,
        prev: Option<D>,
        next: Option<D>,
        twin: Option<D>,
        face: Option<F>
    ) -> D; fn add_face(&mut self, dart: D) -> F; fn set_face(&self, dart: &D, face: F);
}
Expand description

Trait to be implemented by every vertex implementation

Required Methods

Returns all vertex in the graph as an iterator

Returns all darts in the graph as an iterator

Returns all faces in the graph as an iterator

Returns the number of vertexes in the graph

Returns the number of darts in the graph

Returns the number of edges in the graph

Returns the number of faces in the graph

Returns the number of vertexes adjacent to the given face

Returns the amount of vertex neighboring the given vertex

Returns a vector of neighbors of the given vertex

Returns a vertex specified by this id

Returns the dart between to vertexes

Returns the dart linked to the given vertex

Returns the the dart linked to the given face

Returns the twin dart of the given dart

Returns the target vertex of the given dart

Return the face adjacent to the given dart

Returns the next dart in the dart order

Returns the previous dart in the dart order

Adds a new vertex

Adds a new dart

Adds a new face

Sets the face for the given Dart

Implementors