1.0.12 • Published 4 years ago

formula1-graph-names v1.0.12

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Formula One Graph Names

Deprecated. Moved to formula1-six-degree-graph-util

Website https://pratikpc.github.io/six-degree-f1/

License: MIT TypeScript code style: prettier

Graph Operations utilised by the website to parse JSON and Abstract processing

console.log(Graph.GetDriverName('5'));
const graph = new Graph();

graph.CalculateDistancesBetweenAllElements({ cache: true });

console.log(graph.GetSixDegreesOfFreedomInMainComponent());
console.log(
   'Closest between 1950 and 2020',
   Graph.GetDriverName(graph.GetClosestDriverPairingBetweenSeasons(1950, 2020))
);
console.log(
   Graph.GetDriverName(graph.GetClosestTeamPairing('mclaren', 'lotus'))
);
console.log(
   Graph.GetDriverName(
      graph.GetClosestTeamAndDriverPairing('mclaren', 'kimi-raikkonen')
   )
);
console.log('Farthest');
console.log(
   Graph.GetDriverName(graph.GetFarthestDriverPairingBetweenSeasons(1950, 2020))
);
console.log(
   Graph.GetDriverName(graph.GetFarthestTeamPairing('mclaren', 'lotus'))
);
console.log(
   Graph.GetDriverName(
      graph.GetClosestTeamAndDriverPairing('mclaren', 'kimi-raikkonen')
   )
);
1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago