Tag Info

Hot answers tagged

1

From the docs on AdjacencyMatrix: Rows and columns of the adjacency matrix follow the order given by VertexList And from the docs on VertexList: Vertices are taken in the order they appear in the list of edges. Thus, you have {VertexList[g1], VertexList[g2]} (* {{1, 2, 3, 4, 5, 6, 7, 8}, {1, 6, 7, 8, 2, 3, 4, 5}} *) So, you can give an ...


1

You can use something like this. You may need to adapt it. ls = Import["!ls -al 2>&1", "Text"]; lines = Rest@StringSplit[ls, "\n"]; parts = StringSplit /@ lines; dates = parts[[All, 6 ;; 8]]; names = parts[[All, 9]]; datedfiles = DeleteCases[MapThread[Prepend, {dates, names}], {"." | "..", _}]; Column[datedfiles] {"ans.png", "Jan", "22", ...



Only top voted, non community-wiki answers of a minimum length are eligible