Number of profiles at N degrees from a profile P0

+10 votes

Quick question to our software dream team. smiley

Would it be possible to compute the size of a "circle" (or, more exactly "sphere"), meaning the number of profiles at distance N (measured in degrees) of a given "center" profile P0?

I'm sure it's possible, at least in batch, if not on demand, since we have already those distances computed every night. But is it easy and not too costly in resources?

I have an ongoing work for which the distribution of such numbers for a given "center" would be of heavy interest. I will present this work in G2G when it's a bit more advanced.

Thanks for your attention.

[edited : added link to Jean-Joseph Vatant profile, of which "circles" are under investigation at (in French so far)]

WikiTree profile: Jean-Joseph Vatant
in WikiTree Tech by Bernard Vatant G2G6 Pilot (117k points)
retagged by Bernard Vatant
It sounds very likely that Olof an Jean-Joseph are at similar distances from the mainstream, yes.

If this is your interest it's OK with me if you ask Ales for the full set (as below) for Andersson-5056 even if t's a bit beyond my current focus - I think what I can get on Tuesday mornings (or so) from WikiTree+ will suffice for quite some time.

Hello, Bernard.  I know you have said you will present your work in G2G at a later time.  But, because you have already discussed it here, I wonder if you would be interested in setting up a free-space page about the project.  The purpose I'm envisioning would be to create a more permanent WikiTree location for discussion of the project, rather than a G2G discussion which will quickly fade from view.  It could be linked to this discussion, etc.  I'm thinking it could include an "FAQ" (frequently asked questions), so that if people have questions about your work, you only have to answer them once.  I'd be happy to help set up and maintain such a page, as long as you will give me a little help, such as explaining what "fly paws" (pattes de mouche) have to do with anything.  smiley

Julie, I've been reluctant so far to create any free-space page, but it would be a good idea indeed insofar as some people here seem interested. This page should be in English, and linked to my personal page which will stay in French.

I indeed somehow remember to have written "pattes de mouche" somewhere in this forum, but where and when? laugh

It wasn't in the forum, it was in your Circles page.  Paragraph 9, about the birth of Jean-Joseph.  I could not find a good translation, but did wonder if it was similar to the English expression "chicken scratch," meaning hard-to-read handwriting.  You have confirmed that.  smiley

Edited to correct typo.

Oh well. No bad memories. Supposed to be a precursor of some old age disease, but can't remember which one at the moment.

Imagine how I feel!  smiley  Having to try and understand French, mathematics, and WikiTree apps all at the same time!

A freespace page sounds like a good idea.

And in Swedish it's "kråkfötter" - crow's feet.
Wow, that "Cercles" page is impressive. Among many things, the description of WikiTree is excellent (for the French readers, who most likely never heard of it) and your writing style very entertaining. And I enjoyed the maths talk.

Thx Isabelle. So I have at least one French reader wink

3 Answers

+5 votes
Best answer
You can see all the profiles including sizes of each generation on WikiTree+ Here are the first 20 ones.

Is that what you were asking for?
by Aleš Trtnik G2G6 Pilot (686k points)
selected by Bernard Vatant
To be honest, it takes 7 seconds to compute and store all distances for each profile to the disk. Just checking 208 million relations takes 3 seconds.

I have to brag a little, since I wrote such a fast program.

yes I must admit it's impressive. But I'm not surprised you could do it. And I will not hesitate to ask for 7 seconds once in a while. Let's say, every time a new million milestone is passed by the Single Tree. 21 million soon, BTW. This is every four months or so. Are you OK with that deal?

sure. Just send me the an email with link.
Just let me confirm my understanding: the WikiTree connection finder counts siblings as one step apart, whereas in terms of WikiTree+ generations siblings are in the second generation (two steps from the target person = going through a parent). Do I have it right?

That's the way I get it also, Eva. Of course it would be better if the two apps were consistent.frown

Yes. And the other difference is that CF is using also private profiles/connections.
Ales, since you are here, did you notice our other exchange with Eva above? She would be (and I would also) interested to compare the distribution of Jean-Joseph's circles with the ones of her ancestor [[Andersson-5056|Olof  Andersson (1793-1860)]]. Could you run your magic query on this profile too?
I suspect my Olof Andersson would give a very similar result to Jean-Joseph Vatant on the "big Aleš" test, since they are both from the outskirts of the Global Tree.

I wonder what it would look like for someone more central.
Results for /tree.json?userid1=12412011&debug=1















































































































yes more numbers to crunch ...

First analysis :

- At large scale, distributions are pretty much similar, with a median / peak value at d=30 +/- 1

- The Olof distribution is a bit sharper than Jean-Joseph, passing 10% at d=23 vs d=27 and 90% at d=38 vs d=40

- The first circles have a more regular growth for Olof.

Those are basically details. The global geometry is really similar, without surprise.

+5 votes
This question sank very rapidly in the flow. I think your tags did not draw the attention of the people who could answer. I'm not sure I know better tags - I do believe "aleš" and "jamie" exist as tags. Just not sure if it is too "attention-seeking" to use them here.
by Eva Ekeblad G2G6 Pilot (510k points)
Thanks Eva. Difficult indeed to know who to attract.and how ...
+6 votes

You can get the number of ancestors/ relatives via the API.

If you know which you want to include in your circle, you could repeat the call for N-1, thus fill your circle.

But I reckon this will be intensive if you want to do this continuously. Then it might be better to use the data dumps and do the calculation on your own dataset.

I would suggest to add the tag 'wt_apps' to your post, or maybe even join the group.

by Michel Vorenhout G2G6 Pilot (267k points)
Thanks Michel. I'm not a techie myself (not a coder, that is), so I would not be very useful in the group I'm afraid beyond asking questions. Since you read French also (I guess) see the link in the above answer to Isabelle to figure what I am about.

If you have specific profiles you are interested in, you could download the Gedcom with them as the starting point and import it into Gramps. There you have the option to plot the circle (and more). There it is called a Fan Chart. I promise: low tech wink

But your question is assuming that you want this on the fly which will require some coding.

Thx Michel. I don't want to mingle with GEDCOM, one of the ugliest data format I've ever seen in about 15 years I'd been involved in data migration. sad Actually since I'm retired I'd sworn to myself to crunch no data no more. I'll have a look to Gramps that I don't know. 

I don't want to have those figures on the fly. An idea of the distribution at some point in time would be enough. Refresh those figures once a month, or even once a year, would be OK. More to come ...

Oh, here we welcome retired people as they have loads of time wink. I can't agree more on Gedcom... but there is no universal alternative. In my country we have one for documents, but that needs updating as well. API is the way to go really.

I forgot to check the current apps page, but there is a fan chart one:

by Greg.

Maybe that is, for now, what you would want?

Actually the "circles" defined by the distance in degrees include ancestors, descendants and collateral extensions, following the four directions of connection: parent, child, sibling and spouse. I don't think the fan charts expand in those four directions.
No, it doesn't. It would make it a bit hard to visualize.. but also interesting. I am wondering if the Topola Viewer could be expanded to do this in a visual way.

Maybe one of the active developers might be interested?

Try the Family Circles visualization within WikiTree+:

Not exactly what you're saying, but similar

Jonathan, that sounds interesting, but the page does not seem to load in my browser (Chrome)
@Michel, Julie and Jonathan : to be clear I don't care about any kind of fancy visualization (none of them scales beyond 100 nodes). Just a flat distribution table (distance, number of profiles) would make me more than happy.
Ok, try the Family List page in the Genealogy Research section on the profile (Family Tree & Tools, click on Genealogy Research, scroll down to Family List)

You can select how many generations, include ancestors/descendants/both, include siblings.

Not perfect, but closer.

Indeed, this is useful, but expansion of circles goes also through spouses and their families. That's how connection distance (degrees) in WT is computed.

For example, the family list for Jean-Joseph on 3 generations including ancestors, descendants and their siblings as of today, counts 192 profiles. In my local spreadsheet adding expansions through spouses, I count 354. And this is only the 3rd circle ...


that is new to me, and sounds very interesting (but is also not working for me on FF latest)

Related questions

+81 votes
29 answers
+12 votes
5 answers
431 views asked Jul 1, 2021 in The Tree House by Shawn Ligocki G2G6 Mach 2 (23.1k points)
+19 votes
5 answers
625 views asked Jun 29, 2021 in The Tree House by Aleš Trtnik G2G6 Pilot (686k points)
+13 votes
3 answers
349 views asked Jun 24, 2021 in The Tree House by Shawn Ligocki G2G6 Mach 2 (23.1k points)
+14 votes
4 answers
623 views asked Jun 24, 2021 in The Tree House by Shawn Ligocki G2G6 Mach 2 (23.1k points)
+5 votes
0 answers
+15 votes
4 answers
+19 votes
4 answers
+6 votes
1 answer

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright