Name
edge2param — returns user parameters of edges in graph
Synopsis
USERPARAM = EDGE2PARAM(G)
USERPARAM = EDGE2PARAM(G,I)
USERPARAM = EDGE2PARAM(G,I,NOTEDGEPARAM)
Description
USERPARAM = EDGE2PARAM(G) returns cell with all UserParams. If there is not an edge between two nodes, the user parameter is empty array [].
USERPARAM = EDGE2PARAM(G,I) returns matrix of I-th UserParam of edges in graph G. The function returns cell similar to matrix if I is array.
USERPARAM = EDGE2PARAM(G,I,NOTEDGEPARAM) defines value of user parameter for missing edges (default is INF). Parameter NOTEDGEPARAM is disabled for graph with parallel edges.