blocks of information you want to connect) to the graph with the graph.add_node() method. graph.style: the Style object describing the visual style of the graph.graph.nodes: a list of all Node objects in the graph.The returned Graph object has the following properties: You can supply the name of style stored in the /styles subfolder as a string, or your own customized Style object. With the optional style parameter you can control the visual look of the graph. ![]() The create() command returns a new Graph object encompassing the area starting at position x, y and having width w and height h. ![]() The graph library needs this file to operate properly.Ĭreating a network of connected nodes create (x, y, w, h, style= "default" ) Note: you will see a file named libboost_python.dylib appear in the folder from which you are running your script. You can also put it in ~/Library/Application Support/NodeBox/. Put the boostgraph library folder in the same folder as your script so NodeBox can find the library.
0 Comments
Leave a Reply. |