class_docstr: A connected graph of Vertex/Edge objects. A GraphBase is a *component* of a Graph that contains a connected set of Vertex and Edges.
  
  Attributes:
      verticesPoset (Poset[Vertex]): the partially ordered set of vertices of the graph.
      edgesPoset (Poset[Edge]): the partially ordered set of edges of the graph.
      loops (set[Edge]): the set of *loop* edges (of degree 0).
      directed (bool): indicates if the graph is considered *oriented* or not.
class_docstr_tok: ["A","connected","graph","of","Vertex\/Edge","objects",".","A","GraphBase","is","a","*","component","*","of","a","Graph","that","contains","a","connected","set","of","Vertex","and","Edges",".","Attributes",":","verticesPoset","(","Poset","[","Vertex","]",")",":","the","partially","ordered","set","of","vertices","of","the","graph",".","edgesPoset","(","Poset","[","Edge","]",")",":","the","partially","ordered","set","of","edges","of","the","graph",".","loops","(","set","[","Edge","]",")",":","the","set","of","*","loop","*","edges","(","of","degree","0",")",".","directed","(","bool",")",":","indicates","if","the","graph","is","considered","*","oriented","*","or","not","."]
docstr:     This associativity matrix is like the adjacency matrix but antisymmetric. Returns the associativity matrix of the graph component
  
  :param cond: same a the condition function in vertices().
  :return: array
docstr_tok: ["This","associativity","matrix","is","like","the","adjacency","matrix","but","antisymmetric",".","Returns","the","associativity","matrix","of","the","graph","component",":","param","cond",":","same","a","the","condition","function","in","vertices","(",")",".",":","return",":","array"]
code: def matrix(self, cond=None):
      """
          This associativity matrix is like the adjacency matrix but antisymmetric. Returns the associativity matrix of the graph component
  
      :param cond: same a the condition function in vertices().
      :return: array
      """
      from array import array
  
      mat = []
      for v in self.vertices(cond):
          vec = array("b", [0] * self.order())
          mat.append(vec)
          for e in v.e_in():
              v0 = e.v[0]
              if v0.index == v.index:
                  continue
              vec[v0.index] = -e.w
          for e in v.e_out():
              v1 = e.v[1]
              vec[v1.index] = e.w
      return mat
  
imports: from graphistry.layout.utils import Poset
label_desc: Use image node_id 11 for calling the GraphBase obj's underlying member method code with example usage: obj.matrix(cond) and returns: mat