Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Visualize a graph with scaled vertex size based on custom graph-related measures
ResourceFunction["VertexSizeScaledGraph"][graph] visualize a graph with scaled VertexSize based on on custom graph related measures. |
"MaxVertexSize" | 1 | maximum size of a vertex |
"VertexSizeScalingFunction" | Automatic | how VertexSize is scaled |
"VertexSizeFunction" | (VertexDegree[#] &) | function to scale the VertexSize |
"VertexColoringFunction" | Automatic | function to color the vertices |
ColorFunction | "Rainbow" | ways to color vertices |
Visualize the VertexSizeScaledGraph of the Golomb graph:
In[1]:= | ![]() |
Out[1]= | ![]() |
Limit the maximum vertex size with various graphs:
In[2]:= | ![]() |
Out[2]= | ![]() |
Visualize VertexSizeScaledGraph of a RandomGraph:
In[3]:= | ![]() |
Out[5]= | ![]() |
Also works on directed graphs:
In[6]:= | ![]() |
Out[6]= | ![]() |
VertexSizeScaledGraph of SoiferGraph where the VertexSize is scaled by different measures:
In[8]:= | ![]() |
Out[8]= | ![]() |
VertexSizeScaledGraph of the Actinobacillus Actinomycetemcomitans Metabolic Network scaled in two different ways:
In[9]:= | ![]() |
Out[9]= | ![]() |
In[10]:= | ![]() |
Out[10]= | ![]() |
VertexSizeScaledGraph of the GolombGraph with vertices colored by different measures:
In[11]:= | ![]() |
Out[11]= | ![]() |
VertexSizeScaledGraph of the GolombGraph with vertices colored by different measures and custom ColorFunction:
In[12]:= | ![]() |
Out[12]= | ![]() |
In[13]:= | ![]() |
Out[14]= | ![]() |
VertexSizeScaledGraph of a Disease Gene Network:
In[15]:= | ![]() |
Out[15]= | ![]() |
VertexSizeScaledGraph of a Disease Gene Network where the vertices are color-coded by its BetweennessCentrality:
In[16]:= | ![]() |
Out[16]= | ![]() |
VertexSizeScaledGraph containing randomly chosen genes from the co-expression network in human tissues:
In[17]:= | ![]() |
Out[11]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License