Draw figure from biograph object
view(
BGobj
)
BGobjHandle
=
view(BGobj
)
BGobj | Biograph object created with the function |
view(
opens
a Figure window and draws a graph represented by a biograph object
(BGobj
)BGobj
). When the biograph object is already
drawn in the Figure window, this function only updates the graph properties.
returns a handle
to a deep copy of the biograph object (BGobjHandle
=
view(BGobj
)BGobj
) in
the Figure window. When updating an existing figure, you can use the
returned handle to change object properties programmatically or from
the command line. When you close the Figure window, the handle is
no longer valid. The original biograph object (BGobj
)
is left unchanged.
Create a biograph object.
cm = [0 1 1 0 0;1 0 0 1 1;1 0 0 0 0;0 0 0 0 1;1 0 1 0 0]; bg = biograph(cm)
Render the biograph object into a Handles Graphic figure and get back a handle.
h = view(bg)
Change the color of all nodes and edges.
set(h.Nodes,'Color',[.5 .7 1]) set(h.Edges,'LineColor',[0 0 0])
biograph
| dolayout
| get
| getancestors
| getdescendants
| getedgesbynodeid
| getnodesbyid
| getrelatives
| set
| view