class_docstr: Visual for displaying graphs or networks.
  
  Parameters
  ----------
  adjacency_mat : array or sparse
      The adjacency matrix of the graph.
  directed : bool
      Whether the graph is directed or not. If True, then this visual will
      draw arrows for the directed edges.
  layout : str
      They layout to use.
  animate : bool
      Whether or not to animate.
  line_color : str or :class:`vispy.color.colormap.ColorMap`
      The color to use for the edges.
  line_width : number
      The edge thickness.
  arrow_type : str
      The kind of arrow head to use. See :class:`vispy.visuals.ArrowHead`
      for more information.
  arrow_size : number
      The size of the arrow head.
  node_symbol : string
      The marker to use for nodes. See
      :class:`vispy.visuals.MarkersVisual` for more information.
  node_size : number
      The size of the node
  border_color : str or :class:`vispy.color.colormap.ColorMap`
      The border color for nodes.
  face_color : str or :class:`vispy.color.colormap.ColorMap`
      The face color for nodes.
  border_width : number
      The border size for nodes.
  
  See Also
  --------
  ArrowVisual, MarkersVisual
class_docstr_tok: ["Visual","for","displaying","graphs","or","networks",".","Parameters","--","--","--","--","--","adjacency_mat",":","array","or","sparse","The","adjacency","matrix","of","the","graph",".","directed",":","bool","Whether","the","graph","is","directed","or","not",".","If","True",",","then","this","visual","will","draw","arrows","for","the","directed","edges",".","layout",":","str","They","layout","to","use",".","animate",":","bool","Whether","or","not","to","animate",".","line_color",":","str","or",":","class",":","`","vispy.color.colormap.ColorMap","`","The","color","to","use","for","the","edges",".","line_width",":","number","The","edge","thickness",".","arrow_type",":","str","The","kind","of","arrow","head","to","use",".","See",":","class",":","`","vispy.visuals.ArrowHead","`","for","more","information",".","arrow_size",":","number","The","size","of","the","arrow","head",".","node_symbol",":","string","The","marker","to","use","for","nodes",".","See",":","class",":","`","vispy.visuals.MarkersVisual","`","for","more","information",".","node_size",":","number","The","size","of","the","node","border_color",":","str","or",":","class",":","`","vispy.color.colormap.ColorMap","`","The","border","color","for","nodes",".","face_color",":","str","or",":","class",":","`","vispy.color.colormap.ColorMap","`","The","face","color","for","nodes",".","border_width",":","number","The","border","size","for","nodes",".","See","Also","--","--","--","--","ArrowVisual",",","MarkersVisual"]
code: def __init__(
      self,
      adjacency_mat=None,
      directed=False,
      layout=None,
      animate=False,
      line_color=None,
      line_width=None,
      arrow_type=None,
      arrow_size=None,
      node_symbol=None,
      node_size=None,
      border_color=None,
      face_color=None,
      border_width=None,
  ):
      self._edges = ArrowVisual(method="gl", connect="segments")
      self._nodes = MarkersVisual()
  
      self._arrow_data = {}
      self._node_data = {}
      self._node_properties = {}
  
      self._adjacency_mat = None
  
      self._layout = None
      self._layout_iter = None
      self.layout = layout
  
      self._directed = directed
      self.directed = directed
  
      self._animate = False
      self.animate = animate
  
      CompoundVisual.__init__(self, [self._edges, self._nodes])
  
      self.set_data(
          adjacency_mat,
          line_color=line_color,
          line_width=line_width,
          arrow_type=arrow_type,
          arrow_size=arrow_size,
          node_symbol=node_symbol,
          node_size=node_size,
          border_color=border_color,
          face_color=face_color,
          border_width=border_width,
      )
  
file_path: vispy/vispy/visuals/graphs/graph.py
imports: from ..visual import CompoundVisual
  from ..line import ArrowVisual
  from ..markers import MarkersVisual
  from .None import layouts
label_desc: Use image node_id 1 to create a new GraphVisual object from inherited base classes: CompoundVisual with example: obj = GraphVisual(adjacency_mat, directed, layout, animate, line_color, line_width, arrow_type, arrow_size, node_symbol, node_size, border_color, face_color, border_width)