Re: [sage-support] Re: Route inspection problem

2018-04-03 Thread Henri Girard

Yes... I am doing it. But Fano's plane seems to be quiet "special"...


Le 03/04/2018 à 11:28, Samuel Lelièvre a écrit :

Have you tried following the NetworkX tutorial?

https://networkx.github.io/documentation/latest/tutorial.html


2018-04-03 9:52 GMT+02:00 Henri Girard >:


Do you think it's possible to draw fano's plane with networkx ?

I have been looking on internet but no answer yet


Le 03/04/2018 à 08:52, slelievre a écrit :

Or you can turn off the Sage preparser.

    preparser(False)
    edgelist.head(10)


Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit :

Or you can do edgelist.head(int(10))

2018-04-03 8:00 GMT+02:00 Henri Girard:

Thanks, i must write it to each command but it works well

-- 
You received this message because you are subscribed to the

Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to sage-support+unsubscr...@googlegroups.com
.
To post to this group, send email to
sage-support@googlegroups.com .
Visit this group at https://groups.google.com/group/sage-support
.
For more options, visit https://groups.google.com/d/optout
.


-- 
You received this message because you are subscribed to a topic in

the Google Groups "sage-support" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/sage-support/E5OW4M4Frlw/unsubscribe
.
To unsubscribe from this group and all its topics, send an email
to sage-support+unsubscr...@googlegroups.com
.
To post to this group, send email to sage-support@googlegroups.com
.
Visit this group at https://groups.google.com/group/sage-support
.
For more options, visit https://groups.google.com/d/optout
.


--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
.
To post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-03 Thread Samuel Lelièvre
Have you tried following the NetworkX tutorial?

https://networkx.github.io/documentation/latest/tutorial.html


2018-04-03 9:52 GMT+02:00 Henri Girard :

> Do you think it's possible to draw fano's plane with networkx ?
>
> I have been looking on internet but no answer yet
>
> Le 03/04/2018 à 08:52, slelievre a écrit :
>
> Or you can turn off the Sage preparser.
>
> preparser(False)
> edgelist.head(10)
>
>
> Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit :
>>
>> Or you can do edgelist.head(int(10))
>>
>> 2018-04-03 8:00 GMT+02:00 Henri Girard:
>>
>>> Thanks, i must write it to each command but it works well
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/sage-support/E5OW4M4Frlw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-03 Thread Henri Girard

Do you think it's possible to draw fano's plane with networkx ?

I have been looking on internet but no answer yet


Le 03/04/2018 à 08:52, slelievre a écrit :

Or you can turn off the Sage preparser.

    preparser(False)
    edgelist.head(10)


Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit :

Or you can do edgelist.head(int(10))

2018-04-03 8:00 GMT+02:00 Henri Girard:

Thanks, i must write it to each command but it works well

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
.
To post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-03 Thread Henri Girard

thanks preparser is ideal


Le 03/04/2018 à 08:52, slelievre a écrit :

Or you can turn off the Sage preparser.

    preparser(False)
    edgelist.head(10)


Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit :

Or you can do edgelist.head(int(10))

2018-04-03 8:00 GMT+02:00 Henri Girard:

Thanks, i must write it to each command but it works well

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
.
To post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-02 Thread slelievre
Or you can turn off the Sage preparser.

preparser(False)
edgelist.head(10)


Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit :
>
> Or you can do edgelist.head(int(10))
>
> 2018-04-03 8:00 GMT+02:00 Henri Girard:
>
>> Thanks, i must write it to each command but it works well 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-02 Thread Samuel Lelièvre
Or you can do edgelist.head(int(10))

2018-04-03 8:00 GMT+02:00 Henri Girard :

> Thanks, i must write it to each command but it works well
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: Route inspection problem

2018-04-02 Thread Henri Girard

Thanks, i must write it to each command but it works well


Le 03/04/2018 à 00:58, slelievre a écrit :



Le lundi 2 avril 2018 16:57:27 UTC+2, HG a écrit :
> I tried networkx, it works fine with python2 but I have
> a problem with edges in sagemath ?
>
> edgelist.head(10)
> TypeError: cannot do slice indexing on  'pandas.core.indexes.range.RangeIndex'> with these indexers
> [10] of 
> Is there a way getting it working ?

In Sage, you can try:

    edgelist.head(10r)

instead of

    edgelist.head(10)

where the r in 10r stands for "raw" and avoids the Python integer
10 to be preparsed into a Sage integer.

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com 
.
To post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.