up previous next
NCo.AdMatrix

Construct an adjacency matrix of the Ufnarovski graph for a finite set of words.
Syntax
          
NCo.AdMatrix(X:STRING, M:LIST):LIST

          

Description
Please note: The function(s) explained on this page is/are using the ApCoCoAServer. You will have to start the ApCoCoAServer in order to use it/them.



Example
X:="xy";
M:=["xxx","yxy","xyx"];
NCo.AdMatrix(X, M);

[["xx", "xy", "yx", "yy"], Mat([
  [0, 1, 0, 0],
  [0, 0, 0, 1],
  [1, 0, 0, 0],
  [0, 0, 1, 1]
])]
-------------------------------
X:="xy";
M:=["xxx","yxy","xyx","yyx","yyy"];
NCo.AdMatrix(X, M);

[["xx", "xy", "yx", "yy"], Mat([
  [0, 1, 0, 0],
  [0, 0, 0, 1],
  [1, 0, 0, 0],
  [0, 0, 0, 0]
])]
-------------------------------


See Also