This package has been deprecated

Author message:

Moved to formula-one-six-degree-graph-util

formula1-graph-names
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

Formula One Graph Names

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

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')
   )
);

Package Sidebar

Install

npm i formula1-graph-names

Weekly Downloads

14

Version

1.0.12

License

MIT

Unpacked Size

240 kB

Total Files

14

Last publish

Collaborators

  • npm