tModLoader v2024.11
A mod to make and play Terraria mods
TopoSort< T > Class Template Reference

Classes

class  SortingException
 

Public Member Functions

 TopoSort (IEnumerable< T > elements, Func< T, IEnumerable< T > > dependencies=null, Func< T, IEnumerable< T > > dependents=null)
 
void AddEntry (T dependency, T dependent)
 
ISet< T > AllDependencies (T t)
 
ISet< T > AllDependendents (T t)
 
List< T > Dependencies (T t)
 
List< T > Dependents (T t)
 
List< T > Sort ()
 

Public Attributes

readonly ReadOnlyCollection< T > list