Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Relations - in this case, human

Featured Replies

  • Newbies

I have a datebase for persons. In a portal I can enter relations, i.e to which other persons the actual person has a acquaintanceship.

Example

Debbie knows Martin

Frank <-> Ken

Frank <-> Martin

Rebecca <-> Eddie

Eddie <->Martin

I am looking for a FM solution to the following problem:

For a given person, lets say Debbie, I want to know who is the intermediate to come to another given person, Frank.

In the example above: The solution is Martin

Debbie<->Martin<->Frank

(The next more complex problem would be over 2 intermediates:

example Debbie<->Martin<->Eddie<->Rebecca, but lets first stay for the upper, with only one intermediate.. :

Any hints are appreciated

Welcome Tiburon,

This is not a simple problem, I'm afraid. You would need to utilize a "shortest path" algorithm, like a BFS (Breadth-First Search.) As the search proceeds, you build the list of intermediaries.

You might start by reading up on how these algorithms work. Once you get the logic figured out, you can implement it in FileMaker.

Is this like the six-degree of separation problem?

http://www.fmforums.com/forum/showtopic.php?tid/170127/post/177112/hl/sixdegrees/#177112

Ha! I totally forgot about that. You'd think I'd remember since I provided the solution (a solution that doesn't use a shortest-path algorithm.) Go figure...

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.