| Bioinformatics Toolbox™ | ![]() |
set(BGobj)
set(BGobj, 'PropertyName')
set(BGobj, 'PropertyName', PropertyValue)
set(BGobj, 'Property1Name', Property1Value,
'Property2Name', Property2Value,
...)
| BGobj | Biograph object created with the function biograph. |
| PropertyName | Property name for a biograph object. |
| PropertyValue | Value of the property specified by PropertyName. |
set(BGobj) displays possible values for all properties that have a fixed set of property values in BGobj, a biograph object.
set(BGobj, 'PropertyName') displays possible values for a specific property that has a fixed set of property values in BGobj, a biograph object.
set(BGobj, 'PropertyName', PropertyValue) sets the specified property of BGobj, a biograph object.
set(BGobj, 'Property1Name', Property1Value, 'Property2Name', Property2Value, ...) sets the specified properties of BGobj, a biograph object.
Properties of a Biograph Object
| Property | Description |
|---|---|
| ID | String to identify the biograph object. Default is ''. |
| Label | String to label the biograph object. Default is ''. |
| Description | String that describes the biograph object. Default is ''. |
| LayoutType | String that specifies the algorithm for the layout engine. Choices are:
|
| EdgeType | String that specifies how edges display. Choices are:
|
| Scale | Positive number that post-scales the node coordinates. Default is 1. |
| LayoutScale | Positive number that scales the size of the nodes before calling the layout engine. Default is 1. |
| EdgeTextColor | Three-element numeric vector of RGB values. Default is [0, 0, 0], which defines black. |
| EdgeFontSize | Positive number that sets the size of the edge font in points. Default is 8. |
| ShowArrows | Controls the display of arrows with the edges. Choices are 'on' (default) or 'off'. |
| ArrowSize | Positive number that sets the size of the arrows in points. Default is 8. |
| ShowWeights | Controls the display of text indicating the weight of the edges. Choices are 'on' (default) or 'off'. |
| ShowTextInNodes | String that specifies the node property used to label nodes when you display a biograph object using the view method. Choices are:
|
| NodeAutoSize | Controls precalculating the node size before calling the layout engine. Choices are 'on' (default) or 'off'. |
| NodeCallback | User-defined callback for all nodes. Enter the name of a function, a function handle, or a cell array with multiple function handles. After using the view function to display the biograph object in the Biograph Viewer, you can double-click a node to activate the first callback, or right-click and select a callback to activate. Default is the anonymous function, @(node) inspect(node), which displays the Property Inspector dialog box. |
| EdgeCallback | User-defined callback for all edges. Enter the name of a function, a function handle, or a cell array with multiple function handles. After using the view function to display the biograph object in the Biograph Viewer, you can double-click an edge to activate the first callback, or right-click and select a callback to activate. Default is the anonymous function, @(edge) inspect(edge), which displays the Property Inspector dialog box. |
| CustomNodeDrawFcn | Function handle to a customized function to draw nodes. Default is []. |
| Nodes | Read-only column vector with handles to node objects of a biograph object. The size of the vector is the number of nodes. For properties of node objects, see Properties of a Node Object. |
| Edges | Read-only column vector with handles to edge objects of a biograph object. The size of the vector is the number of edges. For properties of edge objects, see Properties of an Edge Object. |
Create a biograph object with default node IDs.
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) Biograph object with 5 nodes and 9 edges.
Use the view method to display the biograph object.
view(bg)

Use the set method to change the edge lines from curved to straight.
set(bg, 'EdgeType', 'straight')
Display the biograph object again.
view(bg)

Bioinformatics Toolbox function: biograph (object constructor)
Bioinformatics Toolbox object: biograph object
Bioinformatics Toolbox method of a biograph object: get
![]() | select (phytree) | set (clustergram) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |