<?php
require 'vendor/autoload.php';
use Webloft\Search\Dfs\DepthFirstSearch;
use Webloft\Search\Dfs\Node;
$rootNode = new Node('1');
$rootNode->linkNode($node2 = new Node('2'));
$rootNode->linkNode($node3 = new Node('3'));
$node2->linkNode($node4 = new Node('4'));
$node3->linkNode($node5 = new Node('5'));
$dfs = new DepthFirstSearch();
$availablePaths = $dfs->getAvailablePaths($rootNode);
-
Notifications
You must be signed in to change notification settings - Fork 0
License
paprykasz/dfs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published