Helper Functions¶ util.get_attr(objects, attr)[source]¶ Returns specific attribute from the properties of the object Parameters object (list[Cable, Port, Definition, Instance]) – pass list of objects Returns list of Return type (list[str]) util.get_names(objects)[source]¶ Returns name name of the verilog object (if the it contains name property) Parameters object (list[Cable, Port, Definition, Instance]) – pass list of objects Returns list of Return type (list[str]) Graph Generation and partitioning Related¶ util.prepare_graph_from_nx(graph)[source]¶ This definition converts networkx graph to xadj, adjncy, eweights data structures util.write_metis_graph(graph, eweights=False, vweights=False, filename=None)[source]¶ This definition write the given netowrkx graph in CSR format for metis util.run_metis(filename, cuts, options='')[source]¶