Coconut Framework  beta
Functions
CNTopologicalSorter.h File Reference

Define CNTopologicalSorter class. More...

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

Go to the source code of this file.

Functions

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
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
Parameters
sortednodesSortted nodes (CNNode)
erroredgesList of edges which failed to sort (CNEdge)
srcSource graph