New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix (Di)Graph incidence matrix #18440
Comments
This comment has been minimized.
This comment has been minimized.
Branch: u/vdelecroix/18440 |
This comment has been minimized.
This comment has been minimized.
Commit: |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:6
Hellooooooo ! I do not understand the purpose of your 'oriented' argument. You are right that the current function is wrong in what it does, i.e. orient arbitrarily the edges of an undirected graph in order to have a To me it does not make much sense. We could just define this parameter from the value of Thaaaaaaaaaanks, Nathann |
comment:8
Replying to @nathanncohen:
It seems that people are mostly interested in the oriented version, which needs an oriented graph. The reason is that
and this is true for oriented graph (even multiedges with loops with my branch ;-).
I do not want to. It seems to be what people expect. I am 100% in favor of making the default unoriented for graphs but then we should find a simple solution to obtain the oriented version. Do you think that the following is simple enough
Ha true true.
Ha right. I always forgot that I am not doing graph theory with my graph with one vertex and three edges ;-) Vincent |
comment:9
"What's wrong with these people?"
So why don't we do that? Guys who want to force an oriented version will only have to change the flag, won't they?
This doubles the number of edges. It is not an arbitrary orientation, it replaces every undirected edge with a 2-cycle. Either way, could you say in the docstring that forcing an oriented graph will result in "some arbitrary orientation" to be picked?
Of course not. Nathann |
comment:11
Hello, Rebased on Vincent |
comment:12
Helloooooo ! I added a small commit at
Thanks, Nathann |
Reviewer: Nathann Cohen |
Changed branch from u/vdelecroix/18440 to public/18440 |
comment:14
Thanks ! Well, it looks good to me but the patchbot indicates a broken doctest in the matroid/ folder. Nathann |
comment:15
Replying to @nathanncohen:
Damn! |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
Theeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeen, Nathann |
comment:18
PDF docs don't build |
comment:19
Because of this ticket?!!? |
comment:20
|
comment:21
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from public/18440 to |
The incidence matrix of a graph is according to wikipedia:
And in the oriented case the column corresponding to a loop must be zero (in order for
m * m.transpose()
to be equal to the Kirchhoff matrix).We keep the default of returning an oriented incidence matrix but add a keyword
oriented
in order to use the other convention.This ticket comes from a question from David Joyner on this sage-support thread.
CC: @nathanncohen
Component: graph theory
Author: Vincent Delecroix
Branch/Commit:
7e0330b
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/18440
The text was updated successfully, but these errors were encountered: