docstr: Tests that the trivial graph has average path length zero,
  since there is exactly one path of length zero in the trivial
  graph.
  
  For more information, see issue #1960.
docstr_tok: ["Tests","that","the","trivial","graph","has","average","path","length","zero",",","since","there","is","exactly","one","path","of","length","zero","in","the","trivial","graph",".","For","more","information",",","see","issue","#","1960","."]
code: def test_trivial_graph(self):
      """Tests that the trivial graph has average path length zero,
      since there is exactly one path of length zero in the trivial
      graph.
  
      For more information, see issue #1960.
  
      """
      G = nx.trivial_graph()
      assert nx.average_shortest_path_length(G) == 0
  
imports: import pytest
  import networkx
label_desc: Use image node_id 7 for calling the TestAverageShortestPathLength obj's underlying member method code with example usage: obj.test_trivial_graph() without return types