<< nodedatafields Noeuds - Sommets 4_edges_arcs >>

metanet >> metanet > Noeuds - Sommets > nodes_data_structure

nodes_data_structure

description of the data structure representing the nodes of a graph

Description

A nodes data structure is represented by a Scilab mlist with type nodes and 3 fields:

Examples

//create a simple graph
ta=[1  1 2 7 8 9 10 10 10 10 11 12 13 13];
he=[2 10 7 8 9 7  7 11 13 13 12 13  9 10];
g=make_graph('simple',1,13,ta,he);
g.nodes.graphics.x=[40,33,29,63,146,233,75,42,114,156,237,260,159];
g.nodes.graphics.y=[7,61,103,142,145,143,43,120,145,18,36,107,107];
show_graph(g,'new')

g.nodes.number
g.nodes

g=add_node_data(g,'Size',rand(1,g.nodes.number,'u'));
g.nodes(1:10)

nodedatafields(g)

See Also


<< nodedatafields Noeuds - Sommets 4_edges_arcs >>