ComputationalRadiationPhysics / DoDo

Specification of HPC hardware and program components
6 stars 1 forks source link

Helper functions for graph composition #13

Closed slizzered closed 8 years ago

slizzered commented 8 years ago

Assuming structure where a new graph is created through a root node that consists of N homogeneous substructures, it would be very convenient to have a function that automates this process.

example interface:

Graph substructure;
// ... definition of substructure

Graph g = consistsOf(substructure, N);

//Alternatively:
Interconnector intcn; // functor determines how the N substructures will be interconnected
                      // could be fully-connected, hypercube, etc.
Graph g = consistsOf(substructure, N, intcn);
slizzered commented 8 years ago

This is mostly done through the new interface that uses inheritance and children. Interconnect nodes are created automatically, the interconnects have still to be done by hand (see new issue about bidirectional edges)