Graph Analysis
Graph Analysis
x
x
In[]:=
provinces=
Out[]=
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
In[]:=
In[]:=
coords=Map#Reverse#&,provinces;
In[]:=
Graph[g,VertexCoordinatescoords,VertexLabels"Name"]
Out[]=
In[]:=
GeoGraphics{GeoStyling[{EdgeForm[White],FaceForm[Orange]}],Map[Polygon,provinces]},MapLineReverseFirst[#],ReverseLast[#]&,g,GeoBackgroundNone
Out[]=
x
x
In[]:=
Get["https://raw.githubusercontent.com/szhorvat/IGraphM/master/IGInstaller.m"]
The currently installed versions of IGraph/M are: {}
Installing IGraph/M is complete: PacletObject.
It can now be loaded using the command
In[]:=
<<"IGraphM`"
Out[]=
IGraph/M 0.3.113 (February 9, 2020) |
Evaluate |
In[]:=
gg=Graph[g]
Out[]=
In[]:=
ts=IGSIRProcess[gg,{2,1}]
Out[]=
TimeSeries
In[]:=
ListLinePlot[ts,PlotLegendsts["ComponentNames"]]
Out[]=
In[]:=
ListLinePlot[ts["PathComponent",2],AxesLabel{"time","infected"},PlotStyleColorData[97][2]]
Out[]=
