| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
Nodes =
getrelatives(BiographNode)
Nodes =
getrelatives(BiographNode,NumGenerations)
BiographNode | Node in a biograph object. |
NumGenerations | Number of generations. Enter a positive integer. |
Nodes = getrelatives(BiographNode) finds all the direct relatives for a given node (BiographNode).
Nodes = getrelatives(BiographNode,NumGenerations) finds the direct relatives for a given node (BiographNode) up to a specified number of generations (NumGenerations).
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)
Find all nodes interacting with node 1.
intNodes = getrelatives(bg.nodes(1)); set(intNodes,'Color',[.7 .7 1]); bg.view;
Bioinformatics Toolbox function: biograph (object constructor)
Bioinformatics Toolbox object: biograph object
Bioinformatics Toolbox methods of a biograph object: dolayout, get, getancestors, getdescendants, getedgesbynodeid, getnodesbyid, getrelatives, set, view
![]() | getpdb | getrelatives (geneont) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |