class UbiGraphDrawer(AbstractXMLRPCDrawer, AbstractGraphDrawer):
Graph drawer that draws a given graph on an UbiGraph display using the XML-RPC API of UbiGraph.
The following vertex attributes are supported: color, label, shape, size. See the Ubigraph documentation for supported shape names. Sizes are relative to the default Ubigraph size.
The following edge attributes are supported: color, label, width. Edge widths are relative to the default Ubigraph width.
All color specifications supported by igraph (e.g., color names, palette indices, RGB triplets, RGBA quadruplets, HTML format) are understood by the Ubigraph graph drawer.
The drawer also has two attributes, vertex_defaults and edge_defaults. These are dictionaries that can be used to set default values for the vertex/edge attributes in Ubigraph.
Unknown Field: deprecated | |
UbiGraph has not received updates since 2008 and is now not available for download (at least not from the official sources). The UbiGraph graph drawer will be removed from igraph in 0.10.0. |
Method | __init__ |
Constructs an UbiGraph drawer using the display at the given URL. |
Method | draw |
Draws the given graph on an UbiGraph display. |
Instance Variable | edge |
Undocumented |
Instance Variable | vertex |
Undocumented |
Inherited from AbstractXMLRPCDrawer
:
Instance Variable | server |
Undocumented |
Instance Variable | service |
Undocumented |
Static Method | _resolve |
Parses the given URL, resolves the hostname to an IP address and returns a new URL with the resolved IP address. This speeds up things big time on Mac OS X where an IP lookup would be performed for every XML-RPC call otherwise. |
Inherited from AbstractGraphDrawer
(via AbstractXMLRPCDrawer
):
Method | ensure |
Helper method that ensures that layout is an instance of Layout . If it is not, the method will try to convert it to a Layout according to the following rules: |