#include <iostream>
#include <vector>
#include <lemon/invalid.h>
Go to the source code of this file.
Classes | |
struct | PetStruct |
Structure returned by addPetersen(). More... | |
struct | SymPetStruct |
Structure returned by addSymPetersen(). More... | |
Defines | |
#define | check(rc, msg) |
If rc is fail, writes an error message end exit. | |
Functions | |
template<typename Graph> | |
PetStruct< Graph > | addPetersen (Graph &G, int num=5) |
Adds a Petersen graph to G . | |
template<class Graph> | |
void | bidirGraph (Graph &G) |
Adds to the graph the reverse pair of all edges. | |
template<class Graph> | |
void | checkBidirPetersen (Graph &G, int num=5) |
Checks the bidirectioned Petersen graph. | |
template<typename Graph> | |
SymPetStruct< Graph > | addSymPetersen (Graph &G, int num=5) |
Adds a Petersen graph to the symmetric G . |
|
Value: if(!(rc)) { \ std::cerr << __FILE__ ":" << __LINE__ << ": error: " << msg << std::endl; \ exit(1); \ } else { } \ rc is fail, writes an error message end exit. The error message contains the file name and the line number of the source code in a standard from, which makes it possible to go there using good source browsers like e.g. emacs .For example check(0==1,"This is obviously false."); graph_test.cc:123: error: This is obviously false.
|
|
Adds a Petersen graph to
|
|
Adds to the graph the reverse pair of all edges. |
|
Checks the bidirectioned Petersen graph. |
|
Adds a Petersen graph to the symmetric
|