Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int[] StupneVrcholu(int[,] graf)
- {
- int N = graf.GetLength(0);
- int[] stupenVrcholu = new int[N];
- for (int i = 0; i < N; i++)
- {
- stupenVrcholu[i] = 0;
- for (int j = 0; j < N; j++)
- if (graf[i, j] != int.MaxValue)
- stupenVrcholu[i] += graf[i, j];
- }
- return stupenVrcholu;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement