graphe à partir de matrice d'incidence sommets-arcs ou sommets-sommets
g = mat_2_graph(a,oriented,[mat])
matrice creuse d'incidence sommets-arcs ou sommets-sommets
entier, 0 (graphe non-orienté ) ou 1 (graphe orienté)
chaîne optionnelle, 'node-arc'
ou'node-node'
graphe (liste)
mat_2_graph
calcule le graphe
g
correspondant à la matrice creuse d'incidence
sommets-arcs ou sommets-sommets a
. Vérification est
faite que a
est une matrice d'incidence sommets-arcs ou
sommets-sommets d'un graphe orienté (orienté = 1
) ou
non-orienté (non-orienté = 0
). Si l'argument optionnel
mat
est omis ou est la chaîne de caractères
'node-arc'
, a doit être une matrice sommets-arcs. Si
mat
est la chaîne de caractères
'node-node'
, a doit être une matrice
sommets-sommets.