Skip to content

Instantly share code, notes, and snippets.

@ilyabo
Last active December 17, 2022 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilyabo/37872fdba08bddf54a021ffde85cad8f to your computer and use it in GitHub Desktop.
Save ilyabo/37872fdba08bddf54a021ffde85cad8f to your computer and use it in GitHub Desktop.
Les miserables
select
source , target,
value/5 as width
from lesmiserables_edges
source target value
Napoleon Myriel 1
Mlle.Baptistine Myriel 8
Mme.Magloire Myriel 10
Mme.Magloire Mlle.Baptistine 6
CountessdeLo Myriel 1
Geborand Myriel 1
Champtercier Myriel 1
Cravatte Myriel 1
Count Myriel 2
OldMan Myriel 1
Valjean Labarre 1
Valjean Mme.Magloire 3
Valjean Mlle.Baptistine 3
Valjean Myriel 5
Marguerite Valjean 1
Mme.deR Valjean 1
Isabeau Valjean 1
Gervais Valjean 1
Listolier Tholomyes 4
Fameuil Tholomyes 4
Fameuil Listolier 4
Blacheville Tholomyes 4
Blacheville Listolier 4
Blacheville Fameuil 4
Favourite Tholomyes 3
Favourite Listolier 3
Favourite Fameuil 3
Favourite Blacheville 4
Dahlia Tholomyes 3
Dahlia Listolier 3
Dahlia Fameuil 3
Dahlia Blacheville 3
Dahlia Favourite 5
Zephine Tholomyes 3
Zephine Listolier 3
Zephine Fameuil 3
Zephine Blacheville 3
Zephine Favourite 4
Zephine Dahlia 4
Fantine Tholomyes 3
Fantine Listolier 3
Fantine Fameuil 3
Fantine Blacheville 3
Fantine Favourite 4
Fantine Dahlia 4
Fantine Zephine 4
Fantine Marguerite 2
Fantine Valjean 9
Mme.Thenardier Fantine 2
Mme.Thenardier Valjean 7
Thenardier Mme.Thenardier 13
Thenardier Fantine 1
Thenardier Valjean 12
Cosette Mme.Thenardier 4
Cosette Valjean 31
Cosette Tholomyes 1
Cosette Thenardier 1
Javert Valjean 17
Javert Fantine 5
Javert Thenardier 5
Javert Mme.Thenardier 1
Javert Cosette 1
Fauchelevent Valjean 8
Fauchelevent Javert 1
Bamatabois Fantine 1
Bamatabois Javert 1
Bamatabois Valjean 2
Perpetue Fantine 1
Simplice Perpetue 2
Simplice Valjean 3
Simplice Fantine 2
Simplice Javert 1
Scaufflaire Valjean 1
Woman1 Valjean 2
Woman1 Javert 1
Judge Valjean 3
Judge Bamatabois 2
Champmathieu Valjean 3
Champmathieu Judge 3
Champmathieu Bamatabois 2
Brevet Judge 2
Brevet Champmathieu 2
Brevet Valjean 2
Brevet Bamatabois 1
Chenildieu Judge 2
Chenildieu Champmathieu 2
Chenildieu Brevet 2
Chenildieu Valjean 2
Chenildieu Bamatabois 1
Cochepaille Judge 2
Cochepaille Champmathieu 2
Cochepaille Brevet 2
Cochepaille Chenildieu 2
Cochepaille Valjean 2
Cochepaille Bamatabois 1
Pontmercy Thenardier 1
Boulatruelle Thenardier 1
Eponine Mme.Thenardier 2
Eponine Thenardier 3
Anzelma Eponine 2
Anzelma Thenardier 2
Anzelma Mme.Thenardier 1
Woman2 Valjean 3
Woman2 Cosette 1
Woman2 Javert 1
MotherInnocent Fauchelevent 3
MotherInnocent Valjean 1
Gribier Fauchelevent 2
Mme.Burgon Jondrette 1
Gavroche Mme.Burgon 2
Gavroche Thenardier 1
Gavroche Javert 1
Gavroche Valjean 1
Gillenormand Cosette 3
Gillenormand Valjean 2
Magnon Gillenormand 1
Magnon Mme.Thenardier 1
Mlle.Gillenormand Gillenormand 9
Mlle.Gillenormand Cosette 2
Mlle.Gillenormand Valjean 2
Mme.Pontmercy Mlle.Gillenormand 1
Mme.Pontmercy Pontmercy 1
Mlle.Vaubois Mlle.Gillenormand 1
Lt.Gillenormand Mlle.Gillenormand 2
Lt.Gillenormand Gillenormand 1
Lt.Gillenormand Cosette 1
Marius Mlle.Gillenormand 6
Marius Gillenormand 12
Marius Pontmercy 1
Marius Lt.Gillenormand 1
Marius Cosette 21
Marius Valjean 19
Marius Tholomyes 1
Marius Thenardier 2
Marius Eponine 5
Marius Gavroche 4
BaronessT Gillenormand 1
BaronessT Marius 1
Mabeuf Marius 1
Mabeuf Eponine 1
Mabeuf Gavroche 1
Enjolras Marius 7
Enjolras Gavroche 7
Enjolras Javert 6
Enjolras Mabeuf 1
Enjolras Valjean 4
Combeferre Enjolras 15
Combeferre Marius 5
Combeferre Gavroche 6
Combeferre Mabeuf 2
Prouvaire Gavroche 1
Prouvaire Enjolras 4
Prouvaire Combeferre 2
Feuilly Gavroche 2
Feuilly Enjolras 6
Feuilly Prouvaire 2
Feuilly Combeferre 5
Feuilly Mabeuf 1
Feuilly Marius 1
Courfeyrac Marius 9
Courfeyrac Enjolras 17
Courfeyrac Combeferre 13
Courfeyrac Gavroche 7
Courfeyrac Mabeuf 2
Courfeyrac Eponine 1
Courfeyrac Feuilly 6
Courfeyrac Prouvaire 3
Bahorel Combeferre 5
Bahorel Gavroche 5
Bahorel Courfeyrac 6
Bahorel Mabeuf 2
Bahorel Enjolras 4
Bahorel Feuilly 3
Bahorel Prouvaire 2
Bahorel Marius 1
Bossuet Marius 5
Bossuet Courfeyrac 12
Bossuet Gavroche 5
Bossuet Bahorel 4
Bossuet Enjolras 10
Bossuet Feuilly 6
Bossuet Prouvaire 2
Bossuet Combeferre 9
Bossuet Mabeuf 1
Bossuet Valjean 1
Joly Bahorel 5
Joly Bossuet 7
Joly Gavroche 3
Joly Courfeyrac 5
Joly Enjolras 5
Joly Feuilly 5
Joly Prouvaire 2
Joly Combeferre 5
Joly Mabeuf 1
Joly Marius 2
Grantaire Bossuet 3
Grantaire Enjolras 3
Grantaire Combeferre 1
Grantaire Courfeyrac 2
Grantaire Joly 2
Grantaire Gavroche 1
Grantaire Bahorel 1
Grantaire Feuilly 1
Grantaire Prouvaire 1
MotherPlutarch Mabeuf 3
Gueulemer Thenardier 5
Gueulemer Valjean 1
Gueulemer Mme.Thenardier 1
Gueulemer Javert 1
Gueulemer Gavroche 1
Gueulemer Eponine 1
Babet Thenardier 6
Babet Gueulemer 6
Babet Valjean 1
Babet Mme.Thenardier 1
Babet Javert 2
Babet Gavroche 1
Babet Eponine 1
Claquesous Thenardier 4
Claquesous Babet 4
Claquesous Gueulemer 4
Claquesous Valjean 1
Claquesous Mme.Thenardier 1
Claquesous Javert 1
Claquesous Eponine 1
Claquesous Enjolras 1
Montparnasse Javert 1
Montparnasse Babet 2
Montparnasse Gueulemer 2
Montparnasse Claquesous 2
Montparnasse Valjean 1
Montparnasse Gavroche 1
Montparnasse Eponine 1
Montparnasse Thenardier 1
Toussaint Cosette 2
Toussaint Javert 1
Toussaint Valjean 1
Child1 Gavroche 2
Child2 Gavroche 2
Child2 Child1 3
Brujon Babet 3
Brujon Gueulemer 3
Brujon Thenardier 3
Brujon Gavroche 1
Brujon Eponine 1
Brujon Claquesous 1
Brujon Montparnasse 1
Mme.Hucheloup Bossuet 1
Mme.Hucheloup Joly 1
Mme.Hucheloup Grantaire 1
Mme.Hucheloup Bahorel 1
Mme.Hucheloup Courfeyrac 1
Mme.Hucheloup Gavroche 1
Mme.Hucheloup Enjolras 1
id name
Napoleon Napoleon
Mlle.Baptistine Mlle.Baptistine
Mme.Magloire Mme.Magloire
CountessdeLo CountessdeLo
Geborand Geborand
Champtercier Champtercier
Cravatte Cravatte
Count Count
OldMan OldMan
Valjean Valjean
Marguerite Marguerite
Mme.deR Mme.deR
Isabeau Isabeau
Gervais Gervais
Listolier Listolier
Fameuil Fameuil
Blacheville Blacheville
Favourite Favourite
Dahlia Dahlia
Zephine Zephine
Fantine Fantine
Mme.Thenardier Mme.Thenardier
Thenardier Thenardier
Cosette Cosette
Javert Javert
Fauchelevent Fauchelevent
Bamatabois Bamatabois
Perpetue Perpetue
Simplice Simplice
Scaufflaire Scaufflaire
Woman1 Woman1
Judge Judge
Champmathieu Champmathieu
Brevet Brevet
Chenildieu Chenildieu
Cochepaille Cochepaille
Pontmercy Pontmercy
Boulatruelle Boulatruelle
Eponine Eponine
Anzelma Anzelma
Woman2 Woman2
MotherInnocent MotherInnocent
Gribier Gribier
Mme.Burgon Mme.Burgon
Gavroche Gavroche
Gillenormand Gillenormand
Magnon Magnon
Mlle.Gillenormand Mlle.Gillenormand
Mme.Pontmercy Mme.Pontmercy
Mlle.Vaubois Mlle.Vaubois
Lt.Gillenormand Lt.Gillenormand
Marius Marius
BaronessT BaronessT
Mabeuf Mabeuf
Enjolras Enjolras
Combeferre Combeferre
Prouvaire Prouvaire
Feuilly Feuilly
Courfeyrac Courfeyrac
Bahorel Bahorel
Bossuet Bossuet
Joly Joly
Grantaire Grantaire
MotherPlutarch MotherPlutarch
Gueulemer Gueulemer
Babet Babet
Claquesous Claquesous
Montparnasse Montparnasse
Toussaint Toussaint
Child2 Child2
Mme.Hucheloup Mme.Hucheloup
Child1 Child1
Brujon Brujon
Myriel Myriel
Labarre Labarre
Tholomyes Tholomyes
Jondrette Jondrette
select
column0 as id,
(select sqrt(count(*))/3 from lesmiserables_edges e
where e.source = column0 or e.target = column0
) as size
from lesmiserables_nodes
where size > 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment