Example #1
0
  void FlowClusteringEPG::_display() const
  {
    if(!optflow_otl_->pull().prev_pcd_indices_)
      return;

    displayEdges(optflow_otl_->pull().img_);
  }
Example #2
0
/*
 * displays every edge and the associated vertices starting at head
 */
void displayEdges(edgeSet * head)
{
  if(head!=NULL)
  {
    displayEdge(head);
    displayEdges(head->nextEdge);
  }
}
Example #3
0
/*
 * displays the edges and vertices of a hyper graph
 */
void displayHyperGraph(hypergraph * h, char * name)
{
  if(h!=NULL)
  {
    printf("EdgeSets of %s:\n", name);
    displayEdges(h->edgeSets);
    printf("-----------------------------------\n");
    printf("VertexSets of %s:\n", name);
    displayVertices(h->vertexSets);
    printf("-----------------------------------\n");
    printf("Number of edges of %s: %d Number of vertices of %s: %d\n", name, numEdges(h->edgeSets), name, numVertices(h->vertexSets));
    printf("===================================\n");
  }
  else
    printf("NULL GRAPH\n");
}
Example #4
0
/* Description: Display all edges of MST in std-out.
 * Input: NA
 * Output: NA.
 */
void Kruskal::displaySpanningTree()
{
	displayEdges(minimumSpanningTree);
}
Example #5
0
/* Description: Display all edges of graph in std-out.
 * Input: NA
 * Output: NA.
 */
void Kruskal::displayEdges()
{
	displayEdges(edgeSet);
}