-
Couldn't load subscription status.
- Fork 60
Closed
Labels
bugA label for issues that are bugsA label for issues that are bugs
Description
When I construct a complete bipartite digraph Graph, and then back into a Digraphs package Digraph, I would expect to get an isomorphic digraph. But apparently not so.
gap> G:=CompleteBipartiteDigraph(1,5);
<immutable complete bipartite digraph with bicomponent sizes 1 and 5>
gap> IsomorphismDigraphs(Digraph(Graph(G)),G);
failEven the adjacency matrix is different. The following
gap> Display(AdjacencyMatrix(G));
[ [ 0, 1, 1, 1, 1, 1 ],
[ 1, 0, 0, 0, 0, 0 ],
[ 1, 0, 0, 0, 0, 0 ],
[ 1, 0, 0, 0, 0, 0 ],
[ 1, 0, 0, 0, 0, 0 ],
[ 1, 0, 0, 0, 0, 0 ] ]is as expected for the bipartite digraph G. But:
gap> Display(AdjacencyMatrix(Digraph(Graph(G))));
[ [ 0, 1, 1, 1, 1, 1 ],
[ 1, 0, 1, 1, 1, 1 ],
[ 1, 1, 0, 1, 1, 1 ],
[ 1, 1, 1, 0, 1, 1 ],
[ 1, 1, 1, 1, 0, 1 ],
[ 1, 0, 0, 0, 0, 0 ] ]is a different adjacency matrix. Why?
Bojan
wilfwilson
Metadata
Metadata
Assignees
Labels
bugA label for issues that are bugsA label for issues that are bugs