pth: True when this style uses the Colors library to render dropshadows. style.align: aligns the node label either RIGHT or CENTER.style.textwidth: if the label 's width exceeds this number it gets wrapped to the next line.style.fontsize: fontsize for node and edge labels.style.font: font used for node and edge labels.style.text: text color used for node and edge labels.style.strokewidth: the width of node outlines and edges.The default stroke is used for all edges. style.stroke: the stroke color for node outlines.The default fill is also used as backdrop on weighted edges. style.background: graph background color (always picked from the default style).create ( "red" )Ī style object has the following properties: Here's an example of how to add your own custom style: s = g. You can change the properties of each of the individual style objects: graph. The goal of this library is visualization of small graphs (> [ 'default', 'light', 'back', 'marked', 'dark', The NodeBox Graph library includes algorithms from NetworkX for betweenness centrality and eigenvector centrality, Connelly Barnes' implementation of Dijksta shortest paths ( here) and the spring layout for JavaScript by Aslak Hellesoy and Dave Hoover ( here). Clustering: partitioning nodes into groups.Centrality: determining the relative importance of a node.Edge: a connection between two nodes (can have a direction and a weight).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |