Skip to main content

socmake_graph

flatten_graph(NODE **kwargs)​

Flatten the dependency graph of NODE into a topologically-sorted flat list.

With no EXCLUDED_IPS, the result is cached in the FLAT_GRAPH target property (read it back with get_property). When EXCLUDED_IPS is passed, the excluded IPs and any of their dependencies that are not also reachable through a non-excluded IP are left out of the traversal; since that result is specific to this call's exclusion set, it is returned via OUTVAR instead of being cached.

Parameters​

NameTypeDescription
NODEstringThe root IP target whose dependency graph should be flattened.

Keyword Arguments​

NameTypeDescription
OUTVARstringVariable that receives the flattened list. Required when EXCLUDED_IPS is used.
EXCLUDED_IPSlist[string]Exclude the listed IPs (and dependencies only reachable through them) from the graph.

compare_lists(L1 L2 RET)​

Function to compare 2 list, will return 1 if they are equal, otherwise, will return -1.

Parameters​

NameTypeDescription
L1list1st list
L2list2nd list
RETintegerreturned value for the comparison