@not_implemented_for('undirected')
@not_implemented_for('multigraph')
def tournament_matrix(G):
 A = nx.adjacency_matrix(G)
 return (A - A.T)

@ not_implemented_for ( 'undirected' ) @ not_implemented_for ( 'multigraph' ) def tournament_matrix ( G ) : A = nx . adjacency_matrix ( G ) return ( A - A . T )
returns the tournament matrix for the given tournament graph .