First time here? Check out the FAQ!

Ask Your Question
2

Edge isoperimetric number

asked 4 years ago

ARG gravatar image

updated 4 years ago

This is probably a very silly question. How does one get the edge isoperimetric number of a graph?

As seen under here there should be an algorithm for it, but when I define a graph (say H), then

edge_isoperimetric_number(H)

returns "name 'edge_isoperimetric_number' is not defined"

and

H.edge_isoperimetric_number()

returns "'Graph' object has no attribute 'edge_isoperimetric_number'"

(while

edge_isoperimetric_number?

returns "Object edge_isoperimetric_number not found."

So how do I load said algorithm for use?

Preview: (hide)

Comments

This ticket has not been merged in sage, so that code is not available. You can try to use git to pull the branch on the ticket page, fix the merge conflict and recompile sage after.

FrédéricC gravatar imageFrédéricC ( 4 years ago )

Thanks...I've never done that before: what is the merge conflict (or how does one fix such a conflict)?

ARG gravatar imageARG ( 4 years ago )

Actually how does one pull this branch? I don't know how to use the commit number 9a0062d887faa15d6e694f7143bd37514f31d790

ARG gravatar imageARG ( 4 years ago )

So far... I :

git clone git://github.com/sagemath/sage.git

but when I tried to do either

git fetch trac u/vdelecroix/21942

or

git pull u/vdelecroix/21942

or

git checkout 7880791d25423e16db76c5f855998818c3c8c45e

or many other numbers in the checkout. But it always returns a error message.

ARG gravatar imageARG ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

FrédéricC gravatar image

There is now a new branch without merge conflict on the trac ticket. So you "just" need to pull and compile. This is quite a task if you are not used to this process.

Some instructions for usage of git for sage developement are here : https://doc.sagemath.org/html/en/deve... Please read them carefully.

(1) First, git clone as you did, and then switch to the develop branch.

(2) create a new branch as a copy of "develop" using

git checkout develop  -b some_branch_name_with_cheeger_inside

(3) Then

git pull origin public/ticket/21942

should work and then you will need to compile sage (takes time..)

You may need to configure "trac" as a remote server for git

Preview: (hide)
link

Comments

Thanks for pointing me in the right direction. At the moment, I get the error:

git_trac.trac_error.TracAuthenticationError: Authentication with trac server failed.

if I try git trac config --user=myusername --pass=mypasswd with my (usual) github usernames and passwords. Then I get the error

fatal: Couldn't find remote ref public/ticket/21942

upon doing git pull origin public/ticket/21942 ...

ARG gravatar imageARG ( 4 years ago )

Do not use "git trac". Rather do

git remote add trac git@trac.sagemath.org:sage.git -t master
FrédéricC gravatar imageFrédéricC ( 4 years ago )

and then

git pull trac public/ticket/21942
FrédéricC gravatar imageFrédéricC ( 4 years ago )

git remote add trac git@trac.sagemath.org:sage.git -t master printed out fatal: remote trac already exists. But then git pull trac public/ticket/21942 worked, many thanks! I still need to compile ...

ARG gravatar imageARG ( 4 years ago )

Compiled and tested, many thanks again. Just a little "bug": the is_connected() function (which the Cheeger functions use) gave an error because it did not like how the vertices of my graph were labeled. After I ran G.relabel() everything went fine.

ARG gravatar imageARG ( 4 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 377 times

Last updated: Jul 11 '20