CPPDescent 80d9539 (with uncommitted changes)
A C++ KNN-Graph creation library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Graph Class Reference

Public Member Functions

 Graph (CompareFunc compare, DestroyFunc vecDestroy)
 
int getSize ()
 
void insertVertex (Pointer vertex)
 Insert a vertex to the graph (if it doesn't already exist).
 
VectorgetVerticesV ()
 
void removeVertex (Pointer vertex)
 
void insertEdge (Pointer vertex1, Pointer vertex2)
 
void removeEdge (Pointer vertex1, Pointer vertex2)
 
VectorgetAdjacentV (Pointer vertex)
 
VectorgetReverseAdjacentV (Pointer vertex)
 
VectorgetGeneralNeighborsV (Pointer vertex)
 Returns a vector where the K first elements are the direct neighbors of the vertex and the rest are the reverse ones.
 
bool isNeighborVertex (Pointer v1, Pointer v2)
 
CompareFunc getCompareData ()
 
CompareFunc getCompareVertices ()
 
DestroyFunc getDestroyData ()
 
VectorgetVec ()
 

Member Function Documentation

◆ getGeneralNeighborsV()

Vector * Graph::getGeneralNeighborsV ( Pointer  vertex)

Returns a vector where the K first elements are the direct neighbors of the vertex and the rest are the reverse ones.

Parameters
vertex
Returns
Vector*

◆ insertVertex()

void Graph::insertVertex ( Pointer  vertex)

Insert a vertex to the graph (if it doesn't already exist).

Parameters
vertexA Pointer to the vertex to be unserted.

The documentation for this class was generated from the following files: