C
Complex Humans
I have a little problem,
that i'd like to read your comments and suggestions
I create a network of 5-10 nodes - a weighted digraph
which all nodes are connected randomly at runtime.
Loops are allowed in the graph.
Is it possible to *hash* pairs of nodes
as well as their costs by use of the following snip,
template<typename T>
struct HashNodes{
T startNode;
T endNode;
int weight[];
};
This is clumpsy and possibly won't work
but I am clueless as of where should I go
that i'd like to read your comments and suggestions
I create a network of 5-10 nodes - a weighted digraph
which all nodes are connected randomly at runtime.
Loops are allowed in the graph.
Is it possible to *hash* pairs of nodes
as well as their costs by use of the following snip,
template<typename T>
struct HashNodes{
T startNode;
T endNode;
int weight[];
};
This is clumpsy and possibly won't work
but I am clueless as of where should I go