Graphs and Orders in Ramsey Theory and in Dimension Theory