Coconut Framework  beta
CNTopologicalSorter.h File Reference

Define CNTopologicalSorter class. More...

#include "CNType.h"
#include "CNForwarders.h"

Go to the source code of this file.


CNBoolean CNTopologicalSort (struct CNObjectList *sortednodes, struct CNObjectList *erroredges, struct CNGraph *src)
 Get the calculation order by topological sort. More...

Detailed Description

Define CNTopologicalSorter class.

Copyright (C) 2013 Steel Wheels Project

Function Documentation

CNBoolean CNTopologicalSort ( struct CNObjectList sortednodes,
struct CNObjectList erroredges,
struct CNGraph src 

Get the calculation order by topological sort.

Return values
CNTrueSuccessed to sort
CNFalseFailed to sort
sortednodesSortted nodes (CNNode)
erroredgesList of edges which failed to sort (CNEdge)
srcSource graph