I have a list with graphics. Some of elements in the list are None type, how can I display all elements from that list on one picture?
miastaPolozenie={{69, 94}, {16, 77}, {32, 11}, {24, 20}, {34, 53}}
counter=1
grafiki=Table[None, {i, 1, liczbaMiast*liczbaMiast}]
polaczone={{1, 1, 1, 1, 0}, {1, 1, 1, 1, 0}, {1, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {0, 0, 0, 1, 1}}
For[i = 1, i < liczbaMiast, i++,
For[j = 1, j < liczbaMiast, j++; counter++,
If[polaczone[[i, j]] == 1,
grafiki[[counter]] =
Graphics[Line[{miastaPolozenie[[i]], miastaPolozenie[[j]]}]]]]]
I want to show all elements from 'grafiki'. I hope this is enough, names are not in English, if you need more information, let me know.
For,NothingandDeleteCases(as a last resort to remove anyNones). – Szabolcs Jan 17 '20 at 15:18SimpleGraph[AdjacencyGraph[polaczone], VertexCoordinates -> miastaPolozenie]– Szabolcs Jan 17 '20 at 15:23