All pastes #754567 Raw Edit

Miscellany

public text v1 · immutable
#754567 ·published 2007-10-30 02:34 UTC
rendered paste body
// list of edges
struct adjacencyList {
    Node to;
    int distance; // length of edge
    Colour colour; // colour of edge
    Owner owner; // owner of edge
    struct adjacencyList *nextEdge;
};

// GameBoard ADT implementation using adjacency list
struct gameBoardNode {
    int numberOfNodes;
    struct adjacencyList **nodes; // edges
    char **label; // label associated with node
    int *numberOfTokens; // number of tokens at a node
    short *visited;
};