#NEWLINE# def test_info( self ) : #NEWLINE# #INDENT# G = networkx . path_graph ( 5 ) #NEWLINE# info = networkx . info ( G ) #NEWLINE# expected_graph_info = '\n' . join ( [ 'Name: path_graph(5)' , 'Type: Graph' , 'Number of nodes: 5' , 'Number of edges: 4' , 'Average degree:   1.6000' ] ) #NEWLINE# assert_equal ( info , expected_graph_info ) #NEWLINE# info = networkx . info ( G , n = 1 ) #NEWLINE# expected_node_info = '\n' . join ( [ 'Node 1 has the following properties:' , 'Degree: 2' , 'Neighbors: 0 2' ] ) #NEWLINE# assert_equal ( info , expected_node_info )