Safe Haskell | Safe-Infered |
---|
Utility functions for cluster operations
Documentation
splitCluster :: List -> List -> [(Gdx, (List, List))]Source
Splits a cluster into the component node groups.
:: List | The node list; only used for node names, so any version is good (before or after the operation) |
-> List | The instance list; also used for names only |
-> Idx | The index of the instance being moved |
-> IMove | The actual move to be described |
-> [OpCode] | The list of opcodes equivalent to the given move |
Convert a placement into a list of OpCodes (basically a job).
instancePriGroup :: List -> Instance -> GdxSource
Computes the group of an instance per the primary node.