mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-09 20:20:56 +08:00
Merge pull request #358 from LeeChungWan/Graphs
Modified Data Structures/Graphs folder .java file name and class name
This commit is contained in:
@ -6,7 +6,7 @@ import java.util.*;
|
|||||||
* @author Unknown
|
* @author Unknown
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class bfs{
|
public class BFS{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The BFS implemented in code to use.
|
* The BFS implemented in code to use.
|
||||||
|
@ -7,7 +7,7 @@ import java.util.*;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class dfs{
|
public class DFS{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation in code of a DFS
|
* Implementation in code of a DFS
|
||||||
|
@ -100,7 +100,7 @@ class PrimMST
|
|||||||
| / \ |
|
| / \ |
|
||||||
(3)-------(4)
|
(3)-------(4)
|
||||||
9 */
|
9 */
|
||||||
MST t = new MST();
|
PrimMST t = new PrimMST();
|
||||||
int graph[][] = new int[][] {{0, 2, 0, 6, 0},
|
int graph[][] = new int[][] {{0, 2, 0, 6, 0},
|
||||||
{2, 0, 3, 8, 5},
|
{2, 0, 3, 8, 5},
|
||||||
{0, 3, 0, 0, 7},
|
{0, 3, 0, 0, 7},
|
||||||
|
Reference in New Issue
Block a user