Name
param2edge — add to graph's user parameters datas from cell or matrix.
Synopsis
graph = PARAM2EDGE(graph,userparam)
graph = PARAM2EDGE(graph,userparam,i)
graph = PARAM2EDGE(graph,userparam,i,notedgeparam)
Description
graph = PARAM2EDGE(graph,userparam) graph - object graph userparam - matrix (simple graph and just 1 parameter in matrix) or cell (parallel edges or several parameters) with user params for edges.
graph = PARAM2EDGE(graph,userparam,i) graph - object graph userparam - matrix or cell with user params for edges i - i-th position of 1st value cell of new params (new UserParams replace original UserParams).
graph = PARAM2EDGE(graph,userparam,i,notedgeparam) graph - object graph userparam - matrix or cell with user params for edges i - i-th position of 1st value cell of new params (new UserParams replace original UserParams). notedgeparam - defines value of user parameter for missing edges. This value is used for checking consistence between graph and matrix userparam (default is INF).