#include <path.h>
Collaboration diagram for path:
Public Member Functions | |
path (node *_n, path *_next=0) | |
~path () | |
path * | clone () |
path * | tail () |
path * | reverse () |
reverses path in place, and returns pointer to new head of path | |
unsigned | length (void) |
returns the number of steps along the path | |
unsigned | degree () |
returns the distance covered by the path | |
void | print (bool beginning=true) |
Public Attributes | |
node * | n |
path * | next |
|
|
|
|
|
|
|
returns the distance covered by the path
|
|
returns the number of steps along the path
|
|
|
|
reverses path in place, and returns pointer to new head of path
|
|
|
|
|
|
|