added path detail to tutorial 004

This commit is contained in:
seangreaves
2023-01-31 13:59:37 +00:00
parent 7c9cf0e775
commit da4959a3ed
2 changed files with 20 additions and 17 deletions

3
.gitignore vendored
View File

@@ -53,4 +53,7 @@ docs/_build/
notebooks/testing.ipynb
notebooks/investigations
# Jupyter
.ipynb_checkpoints
*.DS_Store

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "b7641405",
"id": "177cb892",
"metadata": {},
"source": [
"*In this tutorial we will investigate two seperate companies and check if they are connected.*"
@@ -10,7 +10,7 @@
},
{
"cell_type": "markdown",
"id": "e39bd44d",
"id": "b8cd2e41",
"metadata": {},
"source": [
"There are instances where we may want to see if two companies are connected. We can do this by simply building a network for each company and comparing them to see if there are any common officers, addresses or companies.\n",
@@ -21,7 +21,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "53435932",
"id": "10e091d0",
"metadata": {},
"outputs": [],
"source": [
@@ -32,7 +32,7 @@
},
{
"cell_type": "markdown",
"id": "489a4141",
"id": "b5897b17",
"metadata": {},
"source": [
"Create one network for Zahawi & Zahawi including some limits to reduce the number of possibly irrelevant connections:"
@@ -41,7 +41,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "300cecde",
"id": "8ec6a941",
"metadata": {},
"outputs": [],
"source": [
@@ -53,7 +53,7 @@
},
{
"cell_type": "markdown",
"id": "bf8ddb84",
"id": "7e27a1f1",
"metadata": {},
"source": [
"Create a second network for Gorgeous Services:"
@@ -62,7 +62,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "9480e020",
"id": "eadec2f9",
"metadata": {},
"outputs": [],
"source": [
@@ -74,7 +74,7 @@
},
{
"cell_type": "markdown",
"id": "fd678b28",
"id": "e8fd1658",
"metadata": {},
"source": [
"We can now pass both networks to the `find_network_connections` method which returns any connections found between two networks. The method accepts two networks as input and an optional `max_depth` value (defaults to 5) which sets the maximum depth of network we will build for both. `find_network_connections` builds each network up to the `max_depth` value and completes when connections are found or the `max_depth` is reached."
@@ -83,7 +83,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "b4036e3d",
"id": "dae95c03",
"metadata": {},
"outputs": [
{
@@ -103,7 +103,7 @@
},
{
"cell_type": "markdown",
"id": "bac64a8e",
"id": "4eee3f43",
"metadata": {},
"source": [
"Looks like a connection was found. We can see by the long string of characters that its an officer ID:"
@@ -112,7 +112,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "be034584",
"id": "e02ca7c4",
"metadata": {},
"outputs": [
{
@@ -132,7 +132,7 @@
},
{
"cell_type": "markdown",
"id": "6cd89faa",
"id": "78ec9aab",
"metadata": {},
"source": [
"We can now trace the path from Zahawi & Zahawi to this connection:"
@@ -141,7 +141,7 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "9544095a",
"id": "fc581d24",
"metadata": {},
"outputs": [
{
@@ -244,7 +244,7 @@
},
{
"cell_type": "markdown",
"id": "613910a7",
"id": "efe1add8",
"metadata": {},
"source": [
"... and the path from Gorgeous Connections to the connection:"
@@ -253,7 +253,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "f810b714",
"id": "786d0d23",
"metadata": {},
"outputs": [
{
@@ -332,10 +332,10 @@
},
{
"cell_type": "markdown",
"id": "3e6ffa85",
"id": "b67e8187",
"metadata": {},
"source": [
"Reading both paths tells us how Zahawi & Zahawi connect to Gorgeous Connections."
"Reading both paths tells us how Zahawi & Zahawi connect to Gorgeous Connections. Zahawi & Zahawi has Nadhim Zahawi as an officer who has YOUGOV PLC as an appointment which has Benjamin Elliot as an officer who is also an officer of Gorgeous Services Limited."
]
}
],