Ask Your Question
3

Problem visualizing graphs having Young tableaux at vertices

asked 2022-01-26 00:46:03 +0200

matteo gravatar image

updated 2024-04-12 20:12:32 +0200

FrédéricC gravatar image

I am trying to visualize the crystal graph associated to the tensor product of symmetric representations of a Kac-Moody algebra. An example of the code I am trying to run is the following.

sage: c=crystals.Tableaux('A2',shape=[2,1])                                                               
sage: G=c.digraph()                                                                                       
sage: view(G)                                                                                             
An error occurred.

...

Latex error

When called, the function view(G) gives a latex error, which I have not reported in its entirety. This seems to occur only in case the graph G has tableaux for vertices. In other instances, the function view seems to work fine. Is there a remedy to this issue? Should I install additional packages?

edit retag flag offensive close merge delete

Comments

Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2022-01-26 08:53:58 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2022-01-26 13:28:14 +0200

FrédéricC gravatar image

updated 2022-01-29 09:20:19 +0200

slelievre gravatar image

This works for me after installing dot2tex.

If Sage was installed from source, one way to install dot2tex is:

sage -i dot2tex

On the Sage-macOS app, dot2tex should be installed using pip, the package installer for Python.

Two ways to do that (choose one).

  1. From the terminal, run

    sage --pip install dot2tex
    
  2. Launch Sage and, from within Sage, run

    %pip install dot2tex
    
edit flag offensive delete link more

Comments

Thanks for your answer. When inserting the command on the terminal I get the following message.

$ sage -i dot2tex
Sorry, this binary distribution does not support installing sage packages.

I am currently using a MacBook M1 with operating system Big Sur 11.1. I am not sure this helps, but just in case.

matteo gravatar imagematteo ( 2022-01-27 00:43:09 +0200 )edit
1

I opened an issue at Sage_macOS to add dot2tex:

For now you might try building from source or using Conda.

Edit. In the case of dot2tex, installing with pip works. I added that to the answer.

slelievre gravatar imageslelievre ( 2022-01-27 01:35:20 +0200 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2022-01-26 00:46:03 +0200

Seen: 235 times

Last updated: Jan 29 '22